/* Arden v2 - частный годовой отчёт на хлопковой бумаге. Тихо и тяжело. */

/* ---------- Шрифты (self-host) ---------- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/playfair-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/playfair-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/playfair-italic-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/playfair-italic-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: 'Playfair-fb'; src: local('Georgia'); size-adjust: 103%; }
@font-face { font-family: 'Inter-fb'; src: local('Arial'); size-adjust: 107%; }

/* ---------- Токены ---------- */
:root {
  --paper: #F4F1EA;
  --paper-2: #EDE9DF;
  --ink: #1C1A16;
  --ink-soft: #3B372F;
  --muted: #5E5951;
  --muted-2: #6F6A5F;
  --line: rgba(28, 26, 22, 0.13);
  --line-hair: rgba(28, 26, 22, 0.07);
  --line-strong: rgba(28, 26, 22, 0.22);
  --accent: #582C30;
  --dark: #12100D;
  --cream: rgba(244, 241, 234, 0.86);
  --cream-soft: rgba(244, 241, 234, 0.66);
  --cream-line: rgba(244, 241, 234, 0.16);
  --serif: 'Playfair Display', 'Playfair-fb', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', 'Inter-fb', Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(24px, 5vw, 72px);
  --gap-section: clamp(140px, 18vh, 230px);
  --gap-shmutz: clamp(48px, 7vh, 88px);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: clip;
  position: relative;
}
/* Зерно бумаги: бесшовный SVG-шум, скроллится со страницей */
body::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.10 0 0 0 0 0.086 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3, p, ul, ol, dl, dt, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
b { font-weight: inherit; }
::selection { background: var(--accent); color: var(--paper); }
html.dialog-open { overflow: hidden; }

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

/* Все цифры сайта - табличные */
.registry dt, .tile-fig, .year-num, .strip b { font-variant-numeric: lining-nums tabular-nums; }

/* ---------- Мета-строки ---------- */
.caps {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.shmutz {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-bottom: var(--gap-shmutz);
}
.shmutz .num { color: var(--accent); }
.shmutz-right { color: var(--muted-2); letter-spacing: 0.1em; }

.serif-i { font-family: var(--serif); font-style: italic; font-weight: 500; }

/* ---------- Корешок-прогресс (десктоп) ---------- */
.spine { display: none; }
@media (min-width: 1100px) {
  .spine { display: block; }
  .spine-track {
    position: fixed;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line-hair);
    z-index: 10;
  }
  .spine-fill {
    position: absolute;
    top: 0; left: 0;
    width: 1px;
    height: 100%;
    background: var(--line-strong);
    transform-origin: 0 0;
    transform: scaleY(0);
  }
  .spine-num {
    position: fixed;
    left: 22px;
    bottom: 26px;
    z-index: 10;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--muted-2);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
}
.hero-bg, .hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-bg img {
  object-fit: cover;
  will-change: transform;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(244, 241, 234, 0.82) 0%, rgba(244, 241, 234, 0.42) 46%, rgba(244, 241, 234, 0.12) 100%),
    linear-gradient(0deg, rgba(244, 241, 234, 0.5) 0%, transparent 22%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding-top: clamp(26px, 5vh, 46px);
  padding-bottom: calc(clamp(52px, 8vh, 72px) + env(safe-area-inset-bottom, 0px));
}
.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.hero-top .caps { color: var(--ink-soft); letter-spacing: 0.2em; }
.hero-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(40px, 7vh, 72px);
}
.hero-kicker {
  font-size: clamp(1.1875rem, 1.05rem + 0.7vw, 1.625rem);
  line-height: 1.45;
  color: var(--ink-soft);
  margin-bottom: clamp(28px, 5vh, 48px);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.625rem, 1.3rem + 5.4vw, 6.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.hero-sub {
  font-size: clamp(0.9375rem, 0.88rem + 0.3vw, 1.0625rem);
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: clamp(22px, 3.5vh, 32px);
  max-width: 34rem;
}
.hero-meta {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(0.6875rem, 0.64rem + 0.2vw, 0.8125rem);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 2;
  max-width: 40rem;
}
.hero-meta .dot, .strip .sep, .partner-rules .sep { color: var(--muted-2); }
.hero-arrow {
  position: absolute;
  z-index: 2;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  font-size: 15px;
  color: var(--muted-2);
  opacity: 0.4;
  transition: opacity 0.6s ease;
}
.hero-arrow.gone { opacity: 0; }

/* ---------- Секции ---------- */
.section { padding-top: var(--gap-section); }

/* ---------- Реестр ---------- */
.registry {
  display: grid;
  grid-template-columns: 1fr;
}
.reg-cell {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 22px;
  border-bottom: 1px solid var(--line-hair);
}
.reg-cell:first-child { border-top: 1px solid var(--line-hair); }
.reg-cell dt {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(4rem, 2.6rem + 6vw, 8rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  margin-left: -3px;
}
.reg-cell dd {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.reg-loss dt { color: var(--accent); }
.registry-note {
  font-size: clamp(1.0625rem, 0.95rem + 0.55vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 44rem;
  margin-top: clamp(40px, 6vh, 56px);
}

@media (min-width: 720px) {
  .registry { grid-template-columns: repeat(3, 1fr); column-gap: 48px; }
  .reg-cell {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 18px;
    padding: 40px 0 36px;
    border-top: 0;
    border-bottom: 1px solid var(--line-hair);
  }
  .reg-cell:first-child { border-top: 0; }
  .reg-cell:nth-child(-n+3) { border-top: 1px solid var(--line-hair); }
  .reg-cell dd { text-align: left; font-size: 11px; }
}

/* ---------- Портфель ---------- */
.lede {
  font-size: clamp(1.625rem, 1.15rem + 2vw, 2.625rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 46rem;
  margin-bottom: clamp(44px, 7vh, 72px);
}
.bp-d { display: none; }
@media (min-width: 800px) { .bp-d { display: inline; } }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}
.tile {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-height: 148px;
  padding: 16px 14px 14px;
  background: var(--paper);
  border: 0;
  margin: 0;
  font-family: inherit;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.5s ease;
}
.tile::before, .tile::after {
  content: '';
  position: absolute;
  top: 10px; left: 10px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tile::before { width: 10px; height: 1px; }
.tile::after { width: 1px; height: 10px; }
@media (hover: hover) {
  .tile:hover { background: var(--paper-2); }
  .tile:hover::before, .tile:hover::after { opacity: 1; }
}
.tile:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; }
.tile-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.375rem, 1.28rem + 0.45vw, 1.75rem);
  line-height: 1.15;
}
.tile-meta {
  margin-top: 7px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}
.tile-meta .yr { white-space: nowrap; }
.tile-meta .rlz { color: var(--accent); }
.tile-fig {
  margin-top: auto;
  align-self: flex-end;
  padding-top: 14px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.125rem, 1rem + 0.55vw, 1.5rem);
  line-height: 1;
  color: var(--ink-soft);
  white-space: nowrap;
}
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .tile { min-height: 172px; padding: 20px 18px 16px; }
}
@media (min-width: 980px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .tile { min-height: 196px; padding: 22px 20px 18px; }
}

.strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  margin-top: clamp(28px, 4vh, 40px);
  padding-top: 16px;
  border-top: 1px solid var(--line-hair);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.strip b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0;
  color: var(--ink);
  margin-left: 2px;
}
.strip-2 { border-top: 0; padding-top: 0; margin-top: 14px; }
@media (min-width: 800px) {
  .strip { justify-content: space-between; }
  .strip-2 { justify-content: flex-start; gap: 8px 28px; }
}

/* ---------- Чернильный переход ---------- */
.ink {
  margin-top: var(--gap-section);
  height: clamp(150px, 24vh, 300px);
  overflow: hidden;
  position: relative;
}
.ink img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ink::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--paper) 0%, transparent 26%, transparent 62%, var(--dark) 100%);
}

/* ---------- Тёмный разворот: Партнёр ---------- */
.dark {
  position: relative;
  background: var(--dark) url('../img/linen.webp') center / cover no-repeat;
  color: var(--cream);
  padding-top: clamp(64px, 9vh, 110px);
  padding-bottom: clamp(64px, 9vh, 110px);
}
.dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(0, 0, 0, 0.42) 100%),
    rgba(18, 16, 13, 0.38);
}
.dark .container { position: relative; z-index: 1; }
.dark::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 120px;
  transform: translateY(100%);
  background: linear-gradient(180deg, var(--dark), var(--paper));
  pointer-events: none;
}
.shmutz-dark { border-top-color: var(--cream-line); }
.shmutz-dark .caps { color: var(--cream-soft); }
.shmutz-dark .num-dark { color: var(--cream); }
.dark-quote {
  font-size: clamp(2rem, 1.25rem + 3.2vw, 4rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 21ch;
  color: var(--paper);
  margin-bottom: clamp(52px, 8vh, 96px);
}
.partner-id { max-width: 34rem; }
.partner-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.125rem, 1.7rem + 1.9vw, 3.25rem);
  line-height: 1.1;
  color: var(--paper);
}
.partner-role {
  margin-top: 12px;
  color: var(--cream-soft);
  letter-spacing: 0.22em;
}
.partner-facts { margin-top: clamp(24px, 4vh, 36px); }
.partner-facts li {
  padding: 13px 0;
  border-top: 1px solid var(--cream-line);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--cream);
}
.partner-facts li:last-child { border-bottom: 1px solid var(--cream-line); }
.partner-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: clamp(44px, 7vh, 80px);
  color: var(--cream-soft);
  letter-spacing: 0.16em;
  font-size: 11px;
  line-height: 1.8;
}
@media (min-width: 980px) {
  .partner-rules { justify-content: space-between; }
  /* Будущее фото: full-bleed правая половина разворота.
     .dark .container { display:grid; grid-template-columns: 1fr 420px; }
     .partner-photo img { filter: grayscale(1) contrast(1.06); } */
}

/* ---------- Письмо ---------- */
.letter { max-width: 40rem; }
.letter p { color: var(--ink-soft); }
.letter > p {
  font-size: clamp(1.03rem, 1rem + 0.15vw, 1.0625rem);
  line-height: 1.8;
}
.letter > p + p { margin-top: 26px; }
.letter-open {
  font-size: clamp(1.1875rem, 1.05rem + 0.65vw, 1.625rem) !important;
  line-height: 1.5 !important;
  color: var(--ink) !important;
  margin-bottom: clamp(32px, 5vh, 44px);
}
.letter-pull {
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem) !important;
  line-height: 1.35 !important;
  color: var(--ink) !important;
  margin-block: clamp(40px, 6vh, 56px) !important;
  max-width: 24ch;
}
.letter-loss {
  margin-block: clamp(44px, 7vh, 64px);
  padding: clamp(24px, 4vh, 34px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.letter-loss p {
  font-size: clamp(1.03rem, 1rem + 0.15vw, 1.0625rem);
  line-height: 1.8;
}
.letter-sign {
  margin-top: clamp(40px, 6vh, 56px);
  font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  color: var(--ink);
  text-align: right;
}
.letter-sign::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--line-strong);
  margin: 0 0 14px auto;
}
@media (min-width: 980px) {
  .letter { margin-left: 25%; }
}

/* ---------- Принципы / Порядок ---------- */
.items, .steps { display: grid; }
.item, .step {
  padding: clamp(36px, 5vh, 56px) 0;
  border-bottom: 1px solid var(--line-hair);
}
.item:first-child, .step:first-child { border-top: 1px solid var(--line-hair); }
.item-num { color: var(--muted-2); letter-spacing: 0.22em; font-size: 10px; }
.item-title, .step-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.625rem, 1.35rem + 1.2vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-top: 10px;
}
.item-body {
  margin-top: 16px;
  max-width: 32rem;
  font-size: clamp(1.03rem, 1rem + 0.15vw, 1.0625rem);
  line-height: 1.72;
  color: var(--ink-soft);
}
.drop::first-letter {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 3.2em;
  float: left;
  line-height: 0.82;
  padding-right: 10px;
  color: var(--ink);
}
@media (min-width: 980px) {
  .item {
    display: grid;
    grid-template-columns: 64px minmax(240px, 320px) 1fr;
    column-gap: 40px;
    align-items: start;
  }
  .item .item-num { padding-top: 10px; }
  .item .item-title { margin-top: 0; }
  .item .item-body { margin-top: 4px; max-width: 34rem; }
  .steps {
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
  }
  .step:nth-child(2) { border-top: 1px solid var(--line-hair); }
}

/* ---------- Границы ---------- */
.bounds { display: grid; }
.bound {
  position: relative;
  padding: clamp(26px, 4vh, 36px) 0 clamp(26px, 4vh, 36px) 26px;
  border-bottom: 1px solid var(--line-hair);
  font-size: clamp(1.03rem, 1rem + 0.15vw, 1.0625rem);
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 36rem;
}
.bound:first-child { border-top: 1px solid var(--line-hair); }
.bound::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(clamp(26px, 4vh, 36px) + 0.72em);
  width: 14px;
  height: 1px;
  background: var(--line-strong);
}
.bound b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  color: var(--ink);
}
@media (min-width: 980px) {
  .bounds { grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .bound:nth-child(2) { border-top: 1px solid var(--line-hair); }
}

/* ---------- Хроника ---------- */
.years { display: grid; }
.year {
  padding: clamp(30px, 4.5vh, 44px) 0;
  border-bottom: 1px solid var(--line-hair);
}
.year:first-child { border-top: 1px solid var(--line-hair); }
.year-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 1.35rem + 1.8vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.year-body {
  margin-top: 12px;
  max-width: 34rem;
  font-size: clamp(1.03rem, 1rem + 0.15vw, 1.0625rem);
  line-height: 1.7;
  color: var(--ink-soft);
}
@media (min-width: 980px) {
  .year {
    display: grid;
    grid-template-columns: 240px 1fr;
    column-gap: 40px;
    align-items: baseline;
  }
  .year-body { margin-top: 0; }
}

/* ---------- Горизонт ---------- */
.horizon { padding-block: var(--gap-section); }
.horizon-line {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 24ch;
  margin-inline: auto;
  text-align: center;
  color: var(--ink);
}

/* ---------- Контакт ---------- */
.section-contact { padding-top: 0; }
.contact-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(48px, 8vh, 110px) clamp(72px, 12vh, 140px);
}
.contact-rule {
  width: 26px;
  height: 1px;
  background: var(--accent);
  margin-bottom: clamp(28px, 4vh, 40px);
}
.contact-mail {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.5rem);
  line-height: 1.15;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.contact-city {
  margin-top: clamp(20px, 3vh, 28px);
  letter-spacing: 0.22em;
}
.contact-note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted-2);
}

/* ---------- Подвал ---------- */
.footer { padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
.rule-foot { height: 1px; background: var(--line); margin-bottom: 20px; }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
}
@media (max-width: 520px) {
  .footer-row { flex-direction: column; align-items: center; text-align: center; }
}

/* ---------- Карточка компании ---------- */
.card {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(92vw, 520px);
  max-height: 86svh;
}
.card::backdrop {
  background: rgba(28, 26, 22, 0.52);
  animation: backdropIn 0.3s ease both;
}
@media (min-width: 800px) {
  .card::backdrop {
    background: rgba(28, 26, 22, 0.36);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
}
.card[open] .card-in { animation: cardIn 0.5s var(--ease) both; }
@keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.card-in {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(28, 26, 22, 0.12);
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(28, 26, 22, 0.22);
  padding: clamp(24px, 6vw, 40px);
  overflow-y: auto;
  max-height: 86svh;
}
.card-in::after {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px solid var(--line-hair);
  pointer-events: none;
  border-radius: 1px;
}
.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}
.card-sector { font-size: 10px; }
.card-close {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  background: none;
  border: 0;
  padding: 16px 12px;
  margin: -16px -12px -16px 0;
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}
.card-close:hover { color: var(--ink); }
.card-close:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.card-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 1.5rem + 1.1vw, 2.25rem);
  line-height: 1.12;
  margin-top: 14px;
}
.card-desc {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.card-rows { margin-top: 22px; }
.card-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
}
.card-row + .card-row { border-top: 1px solid var(--line-hair); }
.card-row dt {
  flex: none;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.card-row::before { content: none; }
.card-row .leader,
.card-row dt::after { content: none; }
.card-row dd {
  margin-left: auto;
  text-align: right;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
}
.card-row.realized dd { color: var(--accent); }

/* ---------- Появления (только при живом JS) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .shmutz, .js .rule-foot {
  position: relative;
}
.js .shmutz { border-top-color: transparent; }
.js .shmutz::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 100%;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.9s var(--ease);
}
.js .shmutz-dark::before { background: var(--cream-line); }
.js .shmutz.in::before { transform: none; }
.js .reveal-arrow { opacity: 0; transition: opacity 0.8s ease; transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal-arrow.in { opacity: 0.4; }
.js .reveal-arrow.gone { opacity: 0; transition-delay: 0ms; }

/* ---------- Доступность ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-arrow { opacity: 1; transform: none; transition: none; }
  .js .shmutz { border-top-color: var(--line); }
  .js .shmutz-dark { border-top-color: var(--cream-line); }
  .js .shmutz::before { display: none; }
  .js .reveal-arrow { opacity: 0.4; }
  .js .reveal-arrow.gone { opacity: 0; }
  .card[open] .card-in, .card::backdrop { animation: none; }
  .hero-arrow { transition: none; }
  .hero-bg img { transform: none !important; }
}
