/* ==========================================================================
   PROXIMA — ДЗЗ для юридических задач
   ========================================================================== */

:root {
  --ink: #0a0f13;
  --ink-2: #0e161b;
  --ink-3: #131e24;
  --paper: #f4f1e9;
  --paper-2: #ece8dd;
  --paper-3: #e3ddce;
  --sage: #e7e9df;
  --brass: #c0a062;
  --brass-bright: #e0c48d;
  --brass-deep: #8a6a34;
  --text: #11181c;
  --text-soft: #4e585c;
  --text-mute: #7a8487;
  --text-inv: #f2efe7;
  --text-inv-soft: #aeb8ba;
  --text-inv-mute: #7e8c90;
  --line: rgba(17, 24, 28, 0.14);
  --line-strong: rgba(17, 24, 28, 0.24);
  --line-inv: rgba(242, 239, 231, 0.13);
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 9vw, 132px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(192, 160, 98, 0.45);
  color: #fff;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--brass);
  color: #161208;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn-brass {
  background: var(--brass);
  color: #161208;
}

.btn-brass:hover {
  background: var(--brass-bright);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(192, 160, 98, 0.28);
}

.btn-ghost {
  border-color: rgba(242, 239, 231, 0.24);
  background: transparent;
  color: var(--text-inv);
}

.btn-ghost:hover {
  border-color: var(--brass);
  color: var(--brass-bright);
  background: rgba(255, 255, 255, 0.03);
}

.btn-outline {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.btn-outline:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--paper);
  transform: translateY(-1px);
}

.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 12px;
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(10, 15, 19, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  background: rgba(8, 12, 16, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--container);
  height: 76px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Логотип: знак «ПРОКСИМА» с градиентной линией + подпись под ней */
.logo {
  display: inline-flex;
  flex: none;
  flex-direction: column;
  gap: 5px;
  color: var(--text-inv);
  text-decoration: none;
}

.logo-img {
  display: block;
  width: clamp(112px, 9.8vw, 146px);
  height: auto;
}

.logo-sub {
  display: block;
  padding-left: 0.3em;
  color: var(--text-inv);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.3em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.7vw, 26px);
}

.main-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--text-inv-soft);
  font-size: 12.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--text-inv);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
  letter-spacing: 0.03em;
  color: var(--text-inv-soft);
  text-decoration: none;
  transition: color 0.2s;
}

.header-phone:hover {
  color: var(--brass-bright);
}

.burger {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(242, 239, 231, 0.2);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1px;
  background: var(--text-inv);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease), opacity 0.3s;
}

.burger span:nth-child(1) {
  top: 17px;
}

.burger span:nth-child(2) {
  top: 24px;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  top: 20px;
  transform: rotate(-45deg);
}

/* Mobile menu */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 108px clamp(24px, 6vw, 40px) 34px;
  background: var(--ink);
  visibility: hidden;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease), visibility 0.5s;
}

.mobile-menu.is-open {
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu nav {
  display: grid;
}

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(242, 239, 231, 0.12);
  color: var(--text-inv);
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 500;
  text-decoration: none;
}

.mobile-menu nav a span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--brass);
}

.mobile-menu-foot {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.mobile-menu-foot > a:not(.btn) {
  color: var(--text-inv-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
}

.mobile-menu-foot .btn {
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   Shared section chrome
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding: var(--section-y) 0;
}

.section-paper {
  background: var(--paper);
  color: var(--text);
}

.section-paper-2 {
  background: var(--paper-2);
  color: var(--text);
}

.section-sage {
  background: var(--sage);
  color: var(--text);
}

.section-ink {
  background: var(--ink);
  color: var(--text-inv);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

.section-ink .kicker {
  color: var(--brass);
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 62px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.02;
  text-wrap: balance;
}

.section-lead {
  max-width: 640px;
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}

.section-ink .section-lead {
  color: var(--text-inv-soft);
}

.section-head {
  display: grid;
  gap: 18px;
  max-width: 780px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head-wide {
  max-width: 820px;
}

.section-head-row {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  align-items: end;
  gap: 40px;
  max-width: none;
}

.section-head-row .kicker {
  margin-bottom: 14px;
}

.section-head-row h2 {
  max-width: 620px;
}

/* Reveal */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink);
  color: var(--text-inv);
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -420px;
  width: 1180px;
  height: 1180px;
  border: 1px solid rgba(192, 160, 98, 0.11);
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -230px;
  width: 800px;
  height: 800px;
  border: 1px solid rgba(192, 160, 98, 0.07);
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 82px 82px;
  -webkit-mask-image: radial-gradient(ellipse at 68% 42%, #000 12%, transparent 72%);
  mask-image: radial-gradient(ellipse at 68% 42%, #000 12%, transparent 72%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -260px;
  right: -160px;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(192, 160, 98, 0.15), transparent 62%);
  filter: blur(24px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(28px, 3.4vw, 56px);
  flex: 1;
  padding-top: clamp(112px, 14vh, 150px);
  padding-bottom: 48px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--text-inv-mute);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.17em;
  line-height: 1.5;
  text-transform: uppercase;
}

.pulse-dot {
  position: relative;
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--brass);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(192, 160, 98, 0.55);
  border-radius: 50%;
  animation: pulse 2.8s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}

h1 {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-size: clamp(46px, 5.6vw, 82px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 0.95;
  text-wrap: balance;
}

h1 em {
  font-style: italic;
  color: var(--brass-bright);
}

.hero-lead {
  max-width: 560px;
  margin: 0 0 34px;
  color: var(--text-inv-soft);
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 300;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-inv-mute);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-facts li + li::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

.hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
}

.hero-coord {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 239, 231, 0.34);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(242, 239, 231, 0.45);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.25s;
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 34px;
  background: rgba(242, 239, 231, 0.2);
  overflow: hidden;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 1px;
  height: 50%;
  background: var(--brass);
  animation: scrollLine 2.4s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: translateY(0); }
  60%, 100% { transform: translateY(200%); }
}

.scroll-cue:hover {
  color: var(--brass-bright);
}

/* Exhibit */

.exhibit {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 0 0 auto;
  background: var(--ink-2);
  border: 1px solid var(--line-inv);
  box-shadow: 0 44px 90px rgba(0, 0, 0, 0.52);
}

.exhibit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-inv);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-inv-mute);
}

.exhibit-tag {
  color: var(--brass);
}

.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
}

.compare-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.compare-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}

.compare-date {
  position: absolute;
  top: 10px;
  z-index: 3;
  padding: 6px 8px;
  border: 1px solid rgba(242, 239, 231, 0.22);
  background: rgba(6, 10, 13, 0.74);
  color: var(--text-inv);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.compare-date-left {
  left: 10px;
}

.compare-date-right {
  right: 10px;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 4;
  width: 1px;
  background: var(--brass);
  transform: translateX(-0.5px);
  cursor: ew-resize;
  touch-action: none;
}

.compare-handle::before {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: 0 0 12px rgba(224, 196, 141, 0.45);
}

.compare-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(17, 24, 28, 0.18);
  border-radius: 50%;
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), background 0.25s;
}

.compare-grip svg {
  width: 19px;
  height: 19px;
}

.compare-handle:hover .compare-grip,
.compare-handle:focus-visible .compare-grip {
  transform: translate(-50%, -50%) scale(1.08);
  background: #fff;
}

.compare-handle:focus-visible {
  outline-offset: 6px;
}

.compare-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  z-index: 3;
  padding: 5px 9px;
  background: rgba(6, 10, 13, 0.66);
  color: rgba(242, 239, 231, 0.85);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 0.4s;
}

.compare.is-touched .compare-hint {
  opacity: 0;
}

.exhibit-meta {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  padding: 11px 14px;
  border-top: 1px solid var(--line-inv);
  color: var(--text-inv-mute);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.07em;
}

.exhibit-caption {
  margin: 14px 0 0;
  color: var(--text-inv-soft);
  font-size: 12.5px;
  line-height: 1.6;
}

.exhibit-caption span {
  display: block;
  margin-top: 3px;
  color: var(--text-inv-mute);
  font-size: 10.5px;
}

/* --------------------------------------------------------------------------
   Tasks
   -------------------------------------------------------------------------- */

/* Аудитория: кому адресованы услуги */
.audience {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.audience-label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.audience-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .audience-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .audience-list {
    grid-template-columns: 1fr;
  }
}

.audience-list li {
  position: relative;
  padding-left: 14px;
}

.audience-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--brass);
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.task {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: clamp(24px, 2.4vw, 34px);
  background: var(--paper);
  color: var(--text);
  text-decoration: none;
  transition: background 0.35s;
}

.task:hover {
  background: #fbf8f1;
}

.task-num {
  position: absolute;
  top: clamp(24px, 2.4vw, 34px);
  right: clamp(24px, 2.4vw, 34px);
  color: #9a9c94;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.task-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  color: var(--brass-deep);
  transition: transform 0.4s var(--ease);
}

.task:hover .task-icon {
  transform: translateY(-3px);
}

.task h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(23px, 2vw, 27px);
  font-weight: 600;
  line-height: 1.1;
}

.task p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
}

.task-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--brass-deep);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

.task-link svg {
  width: 13px;
  height: 13px;
}

.task:hover .task-link,
.task:focus-visible .task-link {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .task-link {
    opacity: 0.75;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Cases
   -------------------------------------------------------------------------- */

.cases {
  overflow: hidden;
}

.case {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: start;
  gap: clamp(34px, 5vw, 80px);
  padding: clamp(40px, 5vw, 66px) 0;
  border-top: 1px solid var(--line-inv);
}

.case:last-of-type {
  border-bottom: 1px solid var(--line-inv);
}

.case-media {
  min-width: 0;
}

.case-reverse .case-media {
  order: 2;
}

.case-reverse .case-body {
  order: 1;
}

/* Кейс-«разворот»: кадры во всю ширину, текст — двумя колонками под ними */
.case-feature {
  grid-template-columns: 1fr;
  gap: clamp(22px, 2.4vw, 34px);
}

.case-feature .case-body {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  column-gap: clamp(30px, 4.6vw, 68px);
  align-items: start;
  padding-top: 0;
}

.case-lead {
  min-width: 0;
}

.case-feature .case-lead > h3 {
  margin-bottom: 18px;
}

.case-feature .case-lead > .case-report {
  margin-top: 26px;
}

.frame {
  padding: 8px;
  border: 1px solid var(--line-inv);
  background: var(--ink-2);
}

.frame-top,
.frame-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 10px;
  color: var(--text-inv-mute);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.frame-bottom {
  padding: 10px 4px 4px;
}

.case-body {
  padding-top: 6px;
}

.case-meta {
  margin: 0 0 10px;
  color: var(--brass);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.case h3 {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.1vw, 42px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.03;
}

.case-facts {
  margin: 0;
}

.case-facts > div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid rgba(242, 239, 231, 0.1);
}

.case-facts > div:last-child {
  border-bottom: 1px solid rgba(242, 239, 231, 0.1);
}

.case-facts dt {
  padding-top: 3px;
  color: var(--text-inv-mute);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.case-facts dd {
  margin: 0;
  color: #c9d1d2;
  font-size: 14px;
  line-height: 1.65;
}

.case-note {
  margin: 16px 0 0;
  color: var(--text-inv-mute);
  font-size: 10.5px;
  line-height: 1.55;
}

/* Ссылка «отчёт по этому делу» в кейсе */
.case-report {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(192, 160, 98, 0.45);
  color: var(--brass);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.case-report:hover,
.case-report:focus-visible {
  border-color: var(--brass-bright);
  color: var(--brass-bright);
}

/* Пары и триптихи кадров: отдельные снимки, без шва между половинами */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #060a0d;
}

.duo-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #060a0d;
}

.duo-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Триптих (кейс 02): три кадра в ряд, по своей дате на каждом */

.duo-three {
  grid-template-columns: repeat(3, 1fr);
}

.duo-three .duo-item img {
  aspect-ratio: 4 / 3;
}

/* Серия дат (кейс 02): пять кадров в ряд, приведены к одному масштабу */

.duo-five {
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.duo-five .duo-item img {
  aspect-ratio: 4 / 3;
}

/* Кадр-кнопка: открывает снимок в лайтбоксе */

.duo-zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: zoom-in;
}

.duo-zoom img {
  transition: filter 0.4s ease;
}

.duo-zoom:hover img,
.duo-zoom:focus-visible img {
  filter: brightness(1.07);
}

.duo-zoom:focus-visible {
  outline: 1px solid var(--brass);
  outline-offset: 2px;
}

.duo-date {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid rgba(242, 239, 231, 0.22);
  background: rgba(6, 10, 13, 0.74);
  color: var(--text-inv);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.duo-cap {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  margin: 0;
  padding: 26px 11px 10px;
  background: linear-gradient(to top, rgba(6, 10, 13, 0.86), rgba(6, 10, 13, 0));
  color: var(--text-inv-soft);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  line-height: 1.35;
  text-transform: uppercase;
  pointer-events: none;
}

.duo-cap span {
  display: block;
  max-width: 30ch;
}

.duo-cap-found {
  color: var(--brass);
}

/* Метка зоны изменения: тот же участок луга в обеих датах */
.duo-zone {
  position: absolute;
  top: 28.5%;
  left: 45.5%;
  z-index: 2;
  width: 15%;
  height: 24%;
  border: 1.5px dashed rgba(242, 224, 186, 0.98);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(6, 10, 13, 0.35), inset 0 0 26px rgba(224, 196, 141, 0.16);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
  pointer-events: none;
}

.duo-zone-empty {
  border-color: rgba(242, 239, 231, 0.5);
  box-shadow: 0 0 0 1px rgba(6, 10, 13, 0.3), inset 0 0 26px rgba(242, 239, 231, 0.08);
}

/* Coast / measurements */

.frame-coast .coast-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 8px;
}

.coast-figure {
  margin: 0;
  background: #000;
}

.coast-figure img {
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.coast-figure figcaption {
  padding: 6px 2px 2px;
  color: var(--text-inv-mute);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.measure {
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line-inv);
}

.measure-head {
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-inv);
  color: var(--text-inv-mute);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-transform: uppercase;
}

.measure ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.measure li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(242, 239, 231, 0.08);
  color: var(--text-inv-soft);
  font-size: 12px;
}

.measure li strong {
  color: var(--brass-bright);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
}

.measure-total {
  margin: auto 0 0;
  padding-top: 16px;
  color: var(--text-inv-mute);
  font-size: 10.5px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Report
   -------------------------------------------------------------------------- */

.report-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: clamp(40px, 6vw, 92px);
}

.report-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.paper-stack {
  position: relative;
  width: 100%;
  height: clamp(340px, 40vw, 510px);
}

.paper {
  position: absolute;
  height: auto;
  border: 1px solid rgba(23, 30, 26, 0.13);
  background: #fff;
  box-shadow: 0 26px 54px rgba(23, 30, 26, 0.18);
  transition: transform 0.65s var(--ease);
}

.paper-1 {
  left: 1%;
  top: 7%;
  width: 51%;
  transform: rotate(-7deg);
}

.paper-2 {
  left: 24%;
  top: 0;
  z-index: 2;
  width: 48%;
  transform: rotate(2.5deg);
}

.paper-3 {
  right: 1%;
  top: 9%;
  z-index: 3;
  width: 50%;
  transform: rotate(7.5deg);
}

.paper-stack:hover .paper-1 {
  transform: rotate(-10deg) translate(-8px, -6px);
}

.paper-stack:hover .paper-2 {
  transform: rotate(0.5deg) translateY(-8px);
}

.paper-stack:hover .paper-3 {
  transform: rotate(11deg) translate(8px, -4px);
}

.paper-stamp {
  position: absolute;
  right: 3%;
  bottom: 2%;
  z-index: 4;
  padding: 9px 12px;
  border: 1px solid var(--brass-deep);
  background: rgba(244, 241, 233, 0.8);
  color: var(--brass-deep);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

.report-open {
  margin-top: 30px;
}

.report-body h2 {
  margin: 14px 0 22px;
}

.checklist {
  margin: 30px 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 13px 0 13px 30px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 12px;
  height: 7px;
  border-left: 1.5px solid var(--brass-deep);
  border-bottom: 1.5px solid var(--brass-deep);
  transform: rotate(-45deg);
}

.checklist strong {
  color: var(--text);
  font-weight: 600;
}

.report-meta {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.report-meta span {
  display: block;
  margin-bottom: 4px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.report-meta strong {
  font-size: 12.5px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */

.process-grid {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  align-items: start;
  gap: clamp(40px, 6vw, 92px);
}

.process-head {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 18px;
  justify-items: start;
}

.process-head .btn {
  margin-top: 8px;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 20px;
  padding: 25px 0;
  border-top: 1px solid var(--line-strong);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.step-num {
  color: var(--brass-deep);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.steps h3 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
}

/* Три формата работ */
.formats {
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: clamp(26px, 3vw, 34px);
  border-top: 1px solid var(--line);
}

.formats-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 16px;
}

.formats-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.formats-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.9vw, 25px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
}

.formats-price span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.formats-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--line);
  list-style: none;
}

.formats-list li {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.2vw, 26px);
  background: var(--paper);
}

.formats-num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--brass-deep);
}

.formats-list h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 600;
  line-height: 1.12;
  color: var(--text);
}

.formats-list p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-soft);
}

.formats-cost {
  display: block;
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.6vw, 22px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
}

.formats-note {
  margin: 16px 0 0;
  max-width: 76ch;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-mute);
}

@media (max-width: 860px) {
  .formats-list {
    grid-template-columns: 1fr;
  }
}

.steps p {
  max-width: 560px;
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Control / контроль 2026
   -------------------------------------------------------------------------- */

.control {
  overflow-x: clip;
}

.control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: start;
  gap: clamp(30px, 4.6vw, 64px);
}

.control-figure {
  margin: 0;
}

.frame-plate {
  border-color: var(--line-strong);
  background: #fbf9f2;
}

.frame-plate .frame-top,
.frame-plate .frame-bottom {
  color: var(--text-mute);
}

.sat {
  position: relative;
  overflow: hidden;
  background: #060a0d;
}

.sat img {
  width: 100%;
  height: auto;
}

/* Зона на снимке: пунктирный контур (блок «Контроль»).
   Тот же язык, что у метки зоны в кейсе 01 (`.duo-zone`).
   Номеров нет: связь кольца с фрагментом держится на порядке подписей. */

.sat-zone {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: var(--w, 24%);
  height: var(--h, 24%);
  border: 1.5px dashed rgba(242, 224, 186, 0.98);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(6, 10, 13, 0.35), inset 0 0 34px rgba(224, 196, 141, 0.14);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
  pointer-events: none;
}

.sat-frags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.sat-frags figure {
  margin: 0;
}

.sat-frags img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.sat-frags figcaption {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 11.5px;
  line-height: 1.5;
}

.sat-frags figcaption i {
  color: var(--brass-deep);
  font-style: normal;
  font-weight: 600;
}

.control-caption {
  margin: 16px 0 0;
  color: var(--text-mute);
  font-size: 11px;
  line-height: 1.6;
}

.control-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.05;
}

.control-sub {
  margin: 10px 0 0;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  line-height: 1.6;
  text-transform: uppercase;
}

.signs {
  display: grid;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.signs li {
  display: grid;
  gap: 7px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.signs li:last-child {
  border-bottom: 1px solid var(--line);
}

.sign-tag {
  color: var(--brass-deep);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signs p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.6;
}

.signs b {
  color: var(--text);
  font-weight: 600;
}

.control-note {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-left: 2px solid var(--brass);
  background: rgba(192, 160, 98, 0.11);
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.6;
}

.control-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--brass-deep);
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.control-link svg {
  width: 15px;
  height: 15px;
  color: var(--brass-deep);
}

.control-link:hover {
  color: var(--brass-deep);
}

/* Временной ряд: один участок за разные годы */
.monitor {
  margin-top: clamp(36px, 4.8vw, 60px);
  padding-top: clamp(26px, 3.4vw, 40px);
  border-top: 1px solid var(--line);
}

.monitor-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(18px, 2.6vw, 40px);
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.monitor-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.05;
}

.monitor-sub {
  margin: 10px 0 0;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  line-height: 1.6;
  text-transform: uppercase;
}

.monitor-head .control-sub,
.monitor-head .monitor-sub {
  margin: 8px 0 0;
}

.monitor-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.monitor-checks li {
  padding: 5px 9px;
  border: 1px solid var(--line);
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.monitor-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #060a0d;
}

/* Кадры из разных съёмок отличаются пропорциями (1,59–1,72) — обрезка при
   показе минимальна, а весь участок с дорогой и опушкой остаётся в кадре. */
.monitor-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.frame-bottom .monitor-note {
  flex: 1 1 auto;
  max-width: 62ch;
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
}

.frame-bottom .monitor-counter {
  flex: none;
  color: var(--brass-deep);
}

.monitor-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.monitor-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.monitor-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  opacity: 0.66;
  filter: saturate(0.85);
  transition: opacity 0.22s var(--ease), filter 0.22s var(--ease);
}

.monitor-thumb span {
  display: block;
  margin-top: 6px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  transition: color 0.22s var(--ease);
}

.monitor-thumb:hover img,
.monitor-thumb:focus-visible img {
  opacity: 0.92;
  filter: none;
}

.monitor-thumb.is-active img {
  opacity: 1;
  border-color: var(--brass-deep);
  box-shadow: 0 0 0 2px rgba(192, 160, 98, 0.32);
  filter: none;
}

.monitor-thumb.is-active span {
  color: var(--brass-deep);
}

.monitor-thumb:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .monitor-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
  }

  .monitor-stage {
    aspect-ratio: 16 / 10;
  }

  .frame-bottom .monitor-note {
    font-size: 11px;
  }
}

.control-dates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(42px, 5vw, 70px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.control-dates li {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 22px clamp(16px, 2.4vw, 30px) 0;
  border-left: 1px solid var(--line);
}

.control-dates li:first-child {
  padding-left: 0;
  border-left: 0;
}

.tl-date {
  color: var(--brass-deep);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
}

.control-dates p {
  max-width: 36ch;
  margin: 0;
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.62;
}

/* --------------------------------------------------------------------------
   Law / accordions
   -------------------------------------------------------------------------- */

.law-grid {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  align-items: start;
  gap: clamp(40px, 6vw, 92px);
}

.law-head {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 18px;
}

.law-note {
  margin: 4px 0 0;
  padding-left: 14px;
  border-left: 1px solid var(--brass-deep);
  color: #6d6a5d;
  font-size: 11px;
  line-height: 1.6;
}

.acc {
  border-top: 1px solid var(--line-strong);
}

.acc:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 21px 0;
  list-style: none;
  cursor: pointer;
}

.acc summary::-webkit-details-marker {
  display: none;
}

.acc summary > span:first-child {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 29px);
  font-weight: 600;
  line-height: 1.15;
  transition: color 0.25s;
}

.acc summary:hover > span:first-child {
  color: var(--brass-deep);
}

.acc-icon {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color 0.25s, background 0.25s;
}

.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 1px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.acc-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.acc[open] .acc-icon {
  border-color: var(--brass-deep);
  background: var(--brass);
}

.acc[open] .acc-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.acc-body {
  max-width: 680px;
  padding: 0 0 24px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
  animation: accIn 0.28s ease;
}

.acc-body p {
  margin: 0;
}

.acc-body p + p {
  margin-top: 10px;
}

@keyframes accIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.law-refs {
  padding-left: 12px;
  border-left: 1px solid rgba(138, 106, 52, 0.5);
  color: #6b5a3c;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.01em;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Data
   -------------------------------------------------------------------------- */

.data-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
}

.data-figure {
  margin: 0;
}

.data-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-inv);
}

.data-figure figcaption {
  margin-top: 12px;
  color: var(--text-inv-mute);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.data-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-inv);
  list-style: none;
}

.data-list li {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 20px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line-inv);
}

.data-term {
  color: var(--brass-bright);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.2;
}

.data-list p {
  margin: 0;
  color: var(--text-inv-soft);
  font-size: 13px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  align-items: start;
  gap: clamp(40px, 6vw, 92px);
}

.faq-head {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 18px;
}

.faq-list .acc summary > span:first-child {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.faq-list .acc summary {
  padding: 19px 0;
}

.faq-list .acc-body {
  max-width: 640px;
  padding-bottom: 22px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: -420px;
  right: -300px;
  width: 900px;
  height: 900px;
  border: 1px solid rgba(192, 160, 98, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(420px, 520px);
  align-items: start;
  gap: clamp(40px, 6vw, 100px);
}

.contact h2 {
  margin: 14px 0 22px;
  max-width: 560px;
}

.contact-list {
  max-width: 480px;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-inv);
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-inv);
}

.contact-list li > span {
  color: var(--text-inv-mute);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-list a,
.contact-list p {
  margin: 0;
  color: var(--text-inv);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-list a:hover {
  color: var(--brass-bright);
}

.contact-note {
  margin: 20px 0 0;
  color: var(--text-inv-mute);
  font-size: 11px;
  line-height: 1.6;
}

.form {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 3px;
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

.form-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #d5cfc1;
}

.form-head > span:first-child {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
}

.form-time {
  color: #7a7466;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: right;
  text-transform: uppercase;
}

.field {
  margin-bottom: 15px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: #6e6a5e;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cfc8b8;
  border-radius: 2px;
  background: #fbf9f3;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236e6a5e' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a49d8c;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass-deep);
  background: #fffdf8;
  box-shadow: 0 0 0 3px rgba(192, 160, 98, 0.18);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 18px;
  color: #5b5f58;
  font-size: 11px;
  line-height: 1.55;
  cursor: pointer;
}

.consent input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--brass-deep);
}

.consent a {
  color: #6b4e1f;
  text-underline-offset: 2px;
}

.form-note {
  margin: 12px 0 0;
  color: #7a7466;
  font-size: 10px;
  line-height: 1.5;
}

.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--brass-deep);
  background: rgba(192, 160, 98, 0.12);
  color: #4d3d20;
  font-size: 12.5px;
  line-height: 1.6;
}

.form-status a {
  color: #6b4e1f;
}

.form-status.is-error {
  border-color: #a34a34;
  background: rgba(163, 74, 52, 0.09);
  color: #7a2f1e;
}

.form.is-highlighted {
  animation: formPulse 1.8s var(--ease);
}

@keyframes formPulse {
  0%, 100% { box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38); }
  35% { box-shadow: 0 0 0 3px rgba(192, 160, 98, 0.65), 0 34px 90px rgba(0, 0, 0, 0.38); }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  padding: 64px 0 26px;
  border-top: 1px solid var(--line-inv);
  background: #070b0e;
  color: var(--text-inv);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.6fr 0.9fr;
  gap: 40px;
}

.footer-brand p {
  max-width: 360px;
  margin: 16px 0 0;
  color: var(--text-inv-mute);
  font-size: 12.5px;
  line-height: 1.65;
}

.footer-nav,
.footer-contacts {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-nav > span,
.footer-contacts > span {
  margin-bottom: 6px;
  color: var(--text-inv-mute);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-nav a,
.footer-contacts a,
.footer-contacts p {
  margin: 0;
  color: #c7cfd0;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover,
.footer-contacts a:hover {
  color: var(--brass-bright);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(242, 239, 231, 0.08);
}

.footer-bottom p {
  margin: 0;
  color: var(--text-inv-mute);
  font-size: 10px;
  line-height: 1.5;
}

.footer-disclaimer {
  color: #647174 !important;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal a {
  color: var(--text-inv-mute);
  font-size: 10px;
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--text-inv);
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  width: min(920px, 92vw);
  max-width: 920px;
  margin: auto;
  padding: 0;
  border: 1px solid rgba(242, 239, 231, 0.18);
  background: #0c1216;
  color: var(--text-inv);
}

.lightbox::backdrop {
  background: rgba(3, 6, 8, 0.86);
  backdrop-filter: blur(6px);
}

.lightbox[open] {
  animation: lbIn 0.3s var(--ease);
}

@keyframes lbIn {
  from { opacity: 0; transform: translateY(12px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-inv);
}

.lightbox-count,
.lightbox-title {
  color: var(--text-inv-mute);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lightbox-title {
  color: var(--text-inv-soft);
}

.lightbox-close {
  padding: 5px 10px;
  border: 1px solid var(--line-inv);
  border-radius: 2px;
  background: transparent;
  color: var(--text-inv);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.lightbox-close span {
  margin-left: 4px;
  font-size: 12px;
}

.lightbox-close:hover {
  border-color: var(--brass);
  color: var(--brass-bright);
}

.lightbox-body {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 8px;
  padding: 18px;
}

.lightbox-figure {
  margin: 0;
  text-align: center;
}

.lightbox-figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.lightbox-figure figcaption {
  margin-top: 13px;
  color: var(--text-inv-mute);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.lightbox-nav {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-inv);
  border-radius: 50%;
  background: transparent;
  color: var(--text-inv);
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.lightbox-nav:hover {
  border-color: var(--brass);
  color: var(--brass-bright);
}

/* --------------------------------------------------------------------------
   Report gallery
   -------------------------------------------------------------------------- */

.report.section {
  overflow-x: clip;
}

.reports .section-head {
  margin-bottom: clamp(26px, 3.2vw, 40px);
}

.report-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: clamp(26px, 3.4vw, 42px);
  border-bottom: 1px solid var(--line-inv);
}

.report-tabs::-webkit-scrollbar {
  display: none;
}

.report-tab {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: none;
  margin-bottom: -1px;
  padding: 14px 20px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-inv-mute);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.report-tab-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.report-tab-count {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-inv-mute);
  transition: color 0.2s;
}

.report-tab:hover {
  color: var(--text-inv);
}

.report-tab:hover .report-tab-count {
  color: var(--text-inv-soft);
}

.report-tab[aria-selected="true"] {
  color: var(--text-inv);
  border-bottom-color: var(--brass);
  background: linear-gradient(180deg, rgba(192, 160, 98, 0.08), rgba(192, 160, 98, 0));
}

.report-tab[aria-selected="true"] .report-tab-count {
  color: var(--brass);
}

.report-panel[hidden] {
  display: none;
}

.report-panel {
  animation: reportPanelIn 0.4s var(--ease);
}

@keyframes reportPanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.report-brief {
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  gap: clamp(18px, 2.6vw, 44px);
  margin-bottom: clamp(24px, 3vw, 34px);
  padding-bottom: clamp(22px, 2.6vw, 32px);
  border-bottom: 1px solid var(--line-inv);
}

.report-brief h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 33px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.report-brief dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 26px;
  margin: 0;
}

.report-brief dt {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

.report-brief dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--text-inv-soft);
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.report-thumb-frame {
  display: block;
  padding: 6px;
  border: 1px solid rgba(242, 239, 231, 0.12);
  background: rgba(242, 239, 231, 0.05);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s;
}

.report-thumb-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 550 / 778;
  object-fit: contain;
  background: #fff;
}

.report-thumb:hover .report-thumb-frame {
  transform: translateY(-4px);
  border-color: rgba(192, 160, 98, 0.75);
  background: rgba(192, 160, 98, 0.12);
}

.report-thumb:focus-visible {
  outline: none;
}

.report-thumb:focus-visible .report-thumb-frame {
  border-color: var(--brass-bright);
  box-shadow: 0 0 0 2px rgba(224, 196, 141, 0.5);
}

.report-thumb-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 9px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-inv-soft);
}

.report-thumb-num {
  color: var(--brass);
}

.report-note {
  max-width: 78ch;
  margin: 22px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-inv-mute);
}

.reports-link {
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid rgba(192, 160, 98, 0.45);
  transition: color 0.2s, border-color 0.2s;
}

.reports-link:hover {
  color: var(--brass-bright);
  border-bottom-color: var(--brass-bright);
}

.reports-disclaimer {
  max-width: 92ch;
  margin: clamp(32px, 4vw, 52px) 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-inv);
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-inv-mute);
}

@media (max-width: 1024px) {
  .report-brief {
    grid-template-columns: 1fr;
  }

  .report-brief dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .report-brief dl {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .reports-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
  }

  .report-tab {
    padding: 12px 15px 14px;
  }

  .report-tab-name {
    font-size: 14px;
  }

  .report-thumb-meta {
    font-size: 8px;
  }
}

/* --------------------------------------------------------------------------
   Expert
   -------------------------------------------------------------------------- */

.expert-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.expert-body h2 {
  margin: 18px 0 16px;
}

.expert-body .section-lead {
  max-width: 620px;
}

.expert-person {
  margin: clamp(24px, 3vw, 34px) 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.expert-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--text);
}

.expert-anon {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.expert-facts {
  display: grid;
  gap: 16px;
  margin: clamp(20px, 2.6vw, 28px) 0 0;
}

.expert-facts dt {
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.expert-facts dd {
  margin: 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.62;
  color: var(--text-soft);
}

/* Независимость эксперта */
.expert-indep {
  margin: clamp(22px, 2.6vw, 30px) 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}

.expert-indep-label {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.expert-indep ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.expert-indep li {
  position: relative;
  padding-left: 18px;
  max-width: 62ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-soft);
}

.expert-indep li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 1px;
  background: var(--brass-deep);
}

.expert-indep-note {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-mute);
}

.expert-docs {
  display: grid;
  gap: 14px;
}

.expert-docs-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.expert-docs-label span {
  color: var(--text-mute);
}

.doc-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.doc-frame {
  display: block;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 30, 26, 0.1);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}

.doc-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.doc-card:hover .doc-frame {
  transform: translateY(-3px);
  border-color: var(--brass);
  box-shadow: 0 16px 32px rgba(23, 30, 26, 0.16);
}

.doc-card:focus-visible {
  outline: none;
}

.doc-card:focus-visible .doc-frame {
  border-color: var(--brass-deep);
  box-shadow: 0 0 0 2px rgba(138, 106, 52, 0.45);
}

.doc-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.doc-meta b {
  font-weight: 500;
  color: var(--text);
}

.doc-note {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-mute);
}

@media (max-width: 1024px) {
  .expert-grid {
    grid-template-columns: 1fr;
  }

  .expert-docs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
  }

  .expert-docs-label,
  .doc-note {
    grid-column: 1 / -1;
  }

  .doc-frame img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 760px) {
  .expert-docs {
    grid-template-columns: 1fr;
  }

  .doc-frame img {
    aspect-ratio: 16 / 9;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .header-phone {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr 0.92fr;
  }
}

@media (max-width: 1060px) {
  .control-grid {
    grid-template-columns: 1fr;
  }

  .control-body {
    max-width: 640px;
  }

  .control-dates {
    grid-template-columns: 1fr;
  }

  .control-dates li {
    padding: 16px 0 0;
    border-left: 0;
  }

  .control-dates li + li {
    margin-top: 18px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .sat-frags {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .control-caption {
    font-size: 10.5px;
  }
}

@media (max-width: 560px) {
  .frame-plate .frame-top span:last-child,
  .frame-plate .frame-bottom span:last-child {
    display: none;
  }
}

@media (max-width: 1080px) {
  .main-nav,
  .header-cta {
    display: none;
  }

  .burger {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 122px;
    padding-bottom: 36px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .exhibit {
    max-width: none;
    margin: 10px 0 0;
  }

  .hero-bottom {
    padding-bottom: 18px;
  }

  .task-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }

  .case,
  .report-grid,
  .data-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .case-reverse .case-media,
  .case-reverse .case-body {
    order: initial;
  }

  .case-media {
    max-width: 760px;
  }

  .case-body {
    max-width: 680px;
  }

  .case-feature .case-media {
    max-width: none;
  }

  /* Кейс-«разворот»: на узких экранах текст идёт в исходном порядке DOM */
  .case-feature .case-body {
    display: flex;
    flex-direction: column;
    max-width: none;
  }

  .case-feature .case-lead {
    display: contents;
  }

  .case-feature .case-lead > .case-meta {
    order: 1;
  }

  .case-feature .case-lead > h3 {
    order: 2;
  }

  .case-feature .case-facts {
    order: 3;
  }

  .case-feature .case-lead > .case-note {
    order: 4;
  }

  .case-feature .case-lead > .case-report {
    order: 5;
    align-self: start;
    margin-top: 22px;
  }

  .report-visual {
    order: 2;
  }

  .paper-stack {
    max-width: 560px;
    margin-inline: auto;
    height: 460px;
  }

  .process-grid,
  .law-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .process-head,
  .law-head,
  .faq-head {
    position: static;
  }

  .process-head .btn {
    justify-self: start;
  }

  .contact-grid {
    gap: 40px;
  }

  .form {
    max-width: 620px;
  }
}

@media (max-width: 1024px) {
  /* Серия кадров (кейс 02): на планшете — две строки без пустых клеток:
     две ранние даты крупнее, три поздние — по трети ширины */
  .duo-five {
    grid-template-columns: repeat(6, 1fr);
  }

  .duo-five > .duo-item:nth-child(-n + 2) {
    grid-column: span 3;
  }

  .duo-five > .duo-item:nth-child(n + 3) {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  :root {
    --section-y: 66px;
  }

  html {
    scroll-padding-top: 78px;
  }

  .header-inner {
    height: 66px;
  }

  .logo-img {
    width: 118px;
  }

  .logo-sub {
    font-size: 7.5px;
    letter-spacing: 0.26em;
    padding-left: 0.26em;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 108px;
    padding-bottom: 24px;
  }

  h1 {
    font-size: clamp(40px, 11vw, 58px);
  }

  .hero-lead {
    margin-bottom: 26px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-facts {
    gap: 8px 12px;
    font-size: 8.5px;
  }

  .hero-facts li {
    gap: 12px;
  }

  .hero-bottom {
    display: none;
  }

  .exhibit-meta {
    grid-template-columns: 1fr 1fr;
    font-size: 8px;
  }

  .exhibit-meta span:nth-child(2) {
    display: none;
  }

  .task-grid {
    grid-template-columns: 1fr;
  }

  .task {
    min-height: 0;
  }

  .task-link {
    padding-top: 18px;
  }

  .case {
    gap: 26px;
    padding: 34px 0;
  }

  .case-facts > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .case-facts dt {
    padding-top: 0;
  }

  .frame-coast .coast-grid {
    grid-template-columns: 1fr;
  }

  .coast-figure img {
    aspect-ratio: 16 / 9;
  }

  .measure {
    padding: 16px;
  }

  .coast-figure figcaption {
    font-size: 7.5px;
  }

  .paper-stack {
    height: 360px;
  }

  .report-open {
    margin-top: 24px;
    width: 100%;
  }

  .report-meta {
    flex-direction: column;
    gap: 14px;
  }

  .steps li {
    grid-template-columns: 48px 1fr;
    gap: 14px;
  }

  .step-num {
    font-size: 28px;
  }

  .acc summary {
    gap: 16px;
  }

  .acc-icon {
    width: 24px;
    height: 24px;
  }

  .data-list li {
    grid-template-columns: 110px 1fr;
    gap: 14px;
  }

  .data-term {
    font-size: 20px;
  }

  .contact-list li {
    grid-template-columns: 78px 1fr;
  }

  .form {
    padding: 22px 18px;
  }

  .form-head {
    flex-direction: column;
    gap: 4px;
  }

  .form-time {
    text-align: left;
  }

  .footer {
    padding-top: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 36px;
  }

  .lightbox-body {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .lightbox-nav {
    display: none;
  }

  .lightbox-figure img {
    max-height: 68vh;
  }

  .lightbox-title {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .exhibit-caption {
    font-size: 11.5px;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .mobile-menu,
  .hero::before,
  .hero::after,
  .hero-glow,
  .hero-grid-bg,
  .scroll-cue,
  .hero-bottom,
  .form,
  .lightbox {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero,
  .section-ink,
  .cases,
  .data,
  .contact {
    background: #fff !important;
    color: #000 !important;
  }

  .section {
    padding: 24px 0;
  }
}

/* --------------------------------------------------------------------------
   Мониторинг: счётчик кадров на узких экранах
   (перебивает скрытие технических подписей рамки, объявленное выше)
   -------------------------------------------------------------------------- */
@media (max-width: 560px) {
  .frame-plate .frame-bottom span.monitor-counter {
    display: inline-block;
    font-size: 9px;
  }

  /* Кейс-«разворот»: на телефоне кадры встают друг под другом,
     кроме серии дат — её оставляем по два в ряд, иначе хронология уезжает вниз */
  .duo {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .duo-five {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  /* Последняя дата — во всю ширину: строки заполнены, пустых клеток нет */
  .duo-five > .duo-item:nth-child(n) {
    grid-column: auto;
  }

  .duo-five > .duo-item:last-child {
    grid-column: 1 / -1;
  }

  .duo-cap span {
    max-width: none;
  }

  .case-feature .frame-top span:last-child {
    display: none;
  }
}
