/* ═══════════════════════════════════════════════════════════════════════
   RAGIMOFF · ATLAS — секции главной
   ═══════════════════════════════════════════════════════════════════════ */

/* ══════════════ HERO — «пластина» ══════════════ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  background: var(--ink);
  color: var(--tx-on-ink);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero__grid {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    90deg, var(--rule-ink-2) 0 1px, transparent 1px calc(100% / 6));
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  opacity: .85;
}
.hero__glow {
  position: absolute;
  left: -14vw; bottom: -34vh;
  width: 78vw; height: 78vw;
  max-width: 1100px; max-height: 1100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,97,.20), rgba(201,169,97,.05) 46%, transparent 68%);
  filter: blur(4px);
}
.hero__halo {
  position: absolute;
  right: 6vw; top: 12vh;
  width: 46vw; height: 46vw;
  max-width: 660px; max-height: 660px;
  border-radius: 50%;
  border: 1px solid var(--rule-gold);
  opacity: .28;
}

.hero__in {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 88px var(--gut) clamp(20px, 3vh, 34px);
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}

/* — верхний рельс — */
.hero__rail {
  display: flex; align-items: center; gap: var(--s4);
  color: var(--tx-on-ink-mute);
}
.hero__rail .ln { flex: 1; height: 1px; background: var(--rule-ink); }
.hero__rail .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,169,97,.16);
}

/* — тело пластины — */
.hero__body { position: relative; flex: 1; display: flex; align-items: center; }

.hero__plate {
  position: relative;
  z-index: 2;
  font-family: var(--antiqua);
  font-size: var(--fs-plate);
  font-weight: 300;
  line-height: var(--lh-plate);
  letter-spacing: -.028em;
  margin: 0;
}
.hero__plate .l { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__plate .l > span { display: block; will-change: transform; }
.hero__plate .l:nth-child(2) > span { padding-left: .06em; }
.hero__plate em { font-style: italic; font-weight: 300; }
.hero__plate em::after {
  content: ""; display: inline-block;
  width: .12em; height: .12em; margin-left: .06em;
  background: var(--gold); border-radius: 50%;
  vertical-align: baseline;
}

/* фигура закреплена к низу секции: справа в подвале пластины пусто,
   поэтому рост фигуры вниз ничего не ломает — а набор она не раздувает */
.hero__fig {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  height: min(56vh, 402px);   /* 402 = натуральная высота ассета: без апскейла */
  pointer-events: none;
}
.hero__fig img {
  height: 100%;
  width: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.5));
  /* портрет вырезан ровно по строке пикселей — низ растворяем, иначе виден срез */
  -webkit-mask-image: linear-gradient(180deg, #000 0 74%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0 74%, transparent 100%);
  will-change: transform;
}
.hero__fig::after {
  content: "";
  position: absolute; left: 6%; right: 6%; bottom: 2%;
  height: 1px; background: linear-gradient(90deg, transparent, var(--rule-gold), transparent);
}
.hero__fig-tag {
  position: absolute;
  left: 0; bottom: 24%;
  color: var(--gold);
  padding: 0 var(--s2);
  background: var(--ink);
  white-space: nowrap;
}
/* без JS фигура просто стоит по центру — тот же кадр, без движения */

/* — подвал пластины — */
.hero__foot {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule-ink);
  max-width: min(100%, 620px);
}
@media (min-width: 900px) {
  .hero__foot { max-width: min(100%, 620px); }
}

.hero__cred {
  display: flex; align-items: baseline; gap: var(--s4);
  color: var(--gold);
}
.hero__cred .ln { flex: 1; height: 1px; background: var(--rule-gold); opacity: .5; }

.hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--tx-on-ink-soft);
  max-width: 46ch;
  text-wrap: pretty;
}

.hero__acts { display: flex; flex-wrap: wrap; gap: var(--s3); }

.hero__cue {
  position: absolute;
  right: var(--gut); bottom: clamp(28px, 4vh, 46px);
  display: flex; align-items: center; gap: var(--s3);
  color: var(--tx-on-ink-mute);
  writing-mode: vertical-rl;
}
.hero__cue svg { width: 14px; height: 14px; }

@media (max-width: 900px) {
  .hero__in { padding-top: 92px; gap: var(--s4); }
  .hero__plate { font-size: clamp(2.8rem, 14vw, 5rem); }
  .hero__body { align-items: flex-start; }
  .hero__fig {
    position: relative;
    height: auto;
    width: min(56vw, 290px);
    margin: var(--s4) 0 0 auto;
    right: auto; bottom: auto;
  }
  .hero__fig img { height: auto; width: 100%; }
  .hero__fig-tag { display: none; }
  .hero__grid { background-image: repeating-linear-gradient(90deg, var(--rule-ink-2) 0 1px, transparent 1px 25%); }
}

/* ══════════════ БЕГУЩАЯ СТРОКА РЕГАЛИЙ ══════════════ */

.mq {
  position: relative;
  border-top: 1px solid var(--rule-ink);
  border-bottom: 1px solid var(--rule-ink);
  background: var(--ink-2);
  overflow: hidden;
  padding: var(--s4) 0;
}
.mq::before, .mq::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 14vw;
  z-index: 2; pointer-events: none;
}
.mq::before { left: 0;  background: linear-gradient(90deg, var(--ink-2), transparent); }
.mq::after  { right: 0; background: linear-gradient(270deg, var(--ink-2), transparent); }

.mq__track { display: flex; width: max-content; will-change: transform; }
.mq__run { display: flex; align-items: center; flex: none; }
.mq__item {
  display: inline-flex; align-items: center; gap: var(--s5);
  padding: 0 var(--s5);
  font-family: var(--antiqua);
  font-size: clamp(1rem, 1.7vw, 1.5rem);
  font-style: italic;
  color: var(--tx-on-ink-soft);
  white-space: nowrap;
}
.mq__item::after {
  content: ""; width: 5px; height: 5px;
  background: var(--gold); border-radius: 50%; opacity: .7;
}
.mq__item.is-key { color: var(--gold); font-style: normal; font-family: var(--sans); font-size: var(--fs-cap); letter-spacing: var(--ls-cap); text-transform: uppercase; }

/* ══════════════ СТАТИСТИКА ══════════════ */

.stats { background: var(--ink); color: var(--tx-on-ink); padding: clamp(48px,7vw,96px) 0; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule-ink);
}
.stat {
  padding: var(--s6) var(--s5) var(--s5);
  border-right: 1px solid var(--rule-ink);
  border-bottom: 1px solid var(--rule-ink);
  position: relative;
  overflow: hidden;
}
.stat:last-child { border-right: 0; }
.stat::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .8s var(--e-out);
}
.stat.is-in::after { transform: scaleX(1); }
.stat__n {
  font-family: var(--antiqua);
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 400; line-height: 1;
  letter-spacing: -.03em;
  display: block;
}
.stat__n sup { font-size: .42em; color: var(--gold); vertical-align: super; margin-left: .04em; }
.stat__l {
  display: block; margin-top: var(--s3);
  font-size: var(--fs-cap); font-weight: 500;
  letter-spacing: var(--ls-cap); text-transform: uppercase;
  color: var(--tx-on-ink-mute);
}
@media (max-width: 760px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat:nth-child(2n) { border-right: 0; }
}

/* ══════════════ ЭКОСИСТЕМА ══════════════ */

.eco__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  border-top: 1px solid var(--rule);
}
.eco__card {
  position: relative;
  display: flex; flex-direction: column;
  gap: var(--s4);
  padding: var(--s7) var(--s5) var(--s6);
  border-right: 1px solid var(--rule);
  overflow: hidden;
  transition: color var(--t-mid) var(--e-out);
}
.eco__card:last-child { border-right: 0; }
.eco__card::before {
  content: ""; position: absolute; inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .62s var(--e-out);
  z-index: 0;
}
.eco__card > * { position: relative; z-index: 1; }
.eco__card:hover { color: var(--tx-on-ink); }
.eco__card:hover::before { transform: translateY(0); }
.eco__card:hover .eco__num { color: var(--gold); }
.eco__card:hover .eco__txt { color: var(--tx-on-ink-soft); }
.eco__card:hover .eco__go svg { transform: translateX(8px); }

.eco__num {
  font-family: var(--antiqua); font-style: italic;
  font-size: 1.05rem; color: var(--tx-mute);
  transition: color var(--t-mid);
}
.eco__kicker {
  font-size: var(--fs-cap); font-weight: 600;
  letter-spacing: var(--ls-cap); text-transform: uppercase;
  color: var(--accent-txt);
}
.eco__title {
  font-family: var(--antiqua);
  font-size: var(--fs-h3); font-weight: 400; line-height: 1.1;
  padding-top: var(--s6);
}
.eco__txt { font-size: var(--fs-sm); line-height: 1.72; color: var(--tx-soft); transition: color var(--t-mid); }
.eco__go {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: var(--fs-cap); font-weight: 600;
  letter-spacing: var(--ls-cap); text-transform: uppercase;
  color: var(--accent-txt);
  margin-top: auto; padding-top: var(--s5);
  align-self: flex-start;
}
.eco__go svg { width: 15px; height: 15px; transition: transform var(--t-mid) var(--e-out); }

@media (max-width: 900px) {
  .eco__grid { grid-template-columns: 1fr; }
  .eco__card { border-right: 0; border-bottom: 1px solid var(--rule); padding: var(--s6) 0; }
  .eco__title { padding-top: var(--s4); }
}

/* ══════════════ О ПЕРСОНЕ + ТАЙМЛАЙН ══════════════ */

.ab__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.ab__media { position: sticky; top: 120px; }
.ab__plate {
  position: relative;
  max-width: 392px;
  padding: 14px;                       /* паспарту вместо внутренней рамки */
  background: linear-gradient(180deg, var(--paper-2), var(--paper-3));
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh);
}
.ab__plate img {
  width: 100%;
  border-radius: 2px;
  position: relative; z-index: 1;
}
.ab__badge {
  position: absolute; left: 22px; top: 22px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px;
  background: var(--ink); color: var(--gold);
  border-radius: 2px;
  font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.ab__badge::before { content: ""; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }
.ab__name {
  margin-top: var(--s5);
  font-family: var(--antiqua); font-size: var(--fs-h3); line-height: 1.05;
}
.ab__role { color: var(--tx-mute); font-size: var(--fs-sm); margin-top: 6px; }

.ab__tl { position: relative; }
.tl {
  position: relative;
  padding-left: clamp(28px, 5vw, 64px);
  border-left: 1px solid var(--rule);
}
.tl__item {
  position: relative;
  padding: 0 0 var(--s7);
}
.tl__item:last-child { padding-bottom: 0; }
.tl__item::before {
  content: "";
  position: absolute; left: calc(-1 * clamp(28px, 5vw, 64px) - 4px); top: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--gold-lo);
  transition: background-color var(--t-mid), transform var(--t-mid) var(--e-out);
}
.tl__item:hover::before { background: var(--gold); transform: scale(1.5); }
.tl__year {
  display: block;
  font-family: var(--antiqua); font-style: italic;
  font-size: 1rem; color: var(--accent-txt);
  margin-bottom: 6px;
}
.tl__txt { font-size: var(--fs-body); line-height: 1.7; color: var(--tx-soft); max-width: 62ch; }
.tl__txt strong { color: var(--tx); font-weight: 600; }
.tl__txt a { color: var(--accent-txt); border-bottom: 1px solid var(--rule-gold); }

@media (max-width: 980px) {
  .ab__grid { grid-template-columns: 1fr; }
  .ab__media { position: static; }
}

/* ══════════════ ХРАНИЛИЩЕ ДИПЛОМОВ ══════════════ */

.vault { background: var(--ink); color: var(--tx-on-ink); overflow: hidden; }
.vault__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s6); flex-wrap: wrap;
}
.vault__nav { display: flex; gap: var(--s2); }
.vault__btn {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--rule-ink);
  border-radius: 50%;
  transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast);
}
.vault__btn:hover { border-color: var(--gold); color: var(--gold); }
.vault__btn svg { width: 16px; height: 16px; }

.vault__strip {
  display: flex;
  gap: var(--s4);
  overflow-x: auto;
  padding: var(--s6) var(--gut) var(--s5);
  margin: 0 calc(-1 * var(--gut));
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.vault__strip::-webkit-scrollbar { display: none; }
.vault__strip.is-drag { cursor: grabbing; }

.vault__item {
  flex: none;
  width: clamp(190px, 22vw, 268px);
  position: relative;
}
.vault__item:nth-child(3n+2) { width: clamp(230px, 27vw, 330px); }
.vault__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  border: 1px solid var(--rule-ink);
  border-radius: var(--r);
  overflow: hidden;
}
.vault__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.35) contrast(1.04);
  transition: filter var(--t-slow) var(--e-out), transform var(--t-slow) var(--e-out);
}
.vault__item:hover .vault__frame img { filter: none; transform: scale(1.045); }
.vault__cap {
  display: flex; align-items: baseline; gap: var(--s3);
  margin-top: var(--s3);
  font-size: var(--fs-cap); letter-spacing: .12em; text-transform: uppercase;
  color: var(--tx-on-ink-mute);
}
.vault__cap b { font-family: var(--antiqua); font-style: italic; font-weight: 400; color: var(--gold); letter-spacing: 0; text-transform: none; font-size: .95rem; }
.vault__hint {
  display: flex; align-items: center; gap: var(--s3);
  color: var(--tx-on-ink-mute); font-size: var(--fs-cap);
  letter-spacing: var(--ls-cap); text-transform: uppercase;
  padding: 0 var(--gut);
}

/* ══════════════ SAMİRƏ ══════════════ */

.ppl__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.ppl__quote {
  font-family: var(--antiqua);
  font-size: clamp(1.45rem, 2.6vw, 2.3rem);
  line-height: 1.28;
  font-weight: 300;
  letter-spacing: -.01em;
  max-width: 24ch;
  text-wrap: balance;
}
.ppl__quote em { font-style: italic; color: var(--accent-lg); }
.ppl__meta { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); margin-top: var(--s6); }
.ppl__chip {
  font-size: var(--fs-cap); letter-spacing: .14em; text-transform: uppercase;
  color: var(--tx-mute);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--rule);
}
.ppl__media { position: relative; }
.ppl__media img {
  width: 100%;
  max-height: min(620px, 62vh);
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: var(--r-lg);
  filter: saturate(.92) contrast(1.03);
}
.ppl__tag {
  position: absolute; left: -18px; bottom: 34px;
  background: var(--ink); color: var(--gold);
  padding: 12px 18px;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  border-radius: 2px;
  box-shadow: var(--sh);
}
@media (max-width: 900px) {
  .ppl__grid { grid-template-columns: 1fr; }
  .ppl__tag { left: 14px; bottom: 14px; }
}

/* ══════════════ УСЛУГИ — ИНДЕКС ══════════════ */

.svc { background: var(--ink); color: var(--tx-on-ink); position: relative; }
.svc__list { border-top: 1px solid var(--rule-ink); }
.svc__row {
  position: relative;
  display: grid;
  grid-template-columns: 66px minmax(0, 1.05fr) minmax(0, 1.6fr) 44px;
  align-items: center;
  gap: var(--s5);
  padding: clamp(20px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--rule-ink);
  transition: padding-left var(--t-mid) var(--e-out), border-color var(--t-mid);
}
.svc__row::before {
  content: ""; position: absolute; left: -100vw; right: -100vw; top: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(201,169,97,.09), transparent 62%);
  opacity: 0; transition: opacity var(--t-mid) var(--e-out);
  pointer-events: none;
}
.svc__row:hover { padding-left: var(--s5); border-color: var(--rule-gold); }
.svc__row:hover::before { opacity: 1; }
.svc__row:hover .svc__go { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.svc__idx { font-family: var(--antiqua); font-style: italic; color: var(--tx-on-ink-mute); font-size: 1rem; }
.svc__name {
  font-family: var(--antiqua);
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  font-weight: 400; line-height: 1.08;
  letter-spacing: -.01em;
}
.svc__kicker {
  display: block;
  font-family: var(--sans);
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.svc__txt { font-size: var(--fs-sm); line-height: 1.72; color: var(--tx-on-ink-mute); max-width: 54ch; }
.svc__go {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--rule-ink);
  transition: background-color var(--t-mid) var(--e-out), color var(--t-mid), border-color var(--t-mid), transform var(--t-mid) var(--e-out);
}
.svc__go svg { width: 16px; height: 16px; }
.svc__row:hover .svc__go { transform: rotate(-45deg); }

/* всплывающее превью у курсора */
.svc__peek {
  position: fixed;
  z-index: 4000;
  width: 300px; height: 210px;
  border-radius: var(--r-lg);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.86);
  transition: opacity .32s var(--e-out), transform .42s var(--e-out);
  box-shadow: 0 30px 70px -24px rgba(0,0,0,.8);
  border: 1px solid var(--rule-ink);
}
.svc__peek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.svc__peek img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .svc__peek { display: none; } }

@media (max-width: 900px) {
  .svc__row { grid-template-columns: 44px minmax(0,1fr) 36px; gap: var(--s4); }
  .svc__txt { display: none; }
  .svc__go { width: 36px; height: 36px; }
}

/* ══════════════ КНИГА ══════════════ */

.book__plate {
  display: grid;
  grid-template-columns: minmax(0, .34fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: var(--ink);
  color: var(--tx-on-ink);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4.4vw, 64px);
  position: relative;
  overflow: hidden;
}
.book__plate::after {
  content: ""; position: absolute; right: -8%; top: -30%;
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,97,.22), transparent 66%);
}
.book__spine {
  position: relative;
  aspect-ratio: 3 / 4.3;
  border-radius: 2px 5px 5px 2px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.42), transparent 9%),
    linear-gradient(150deg, var(--ink-3), var(--ink));
  border: 1px solid var(--rule-gold);
  display: flex; align-items: center; justify-content: center;
  padding: var(--s5);
  box-shadow: 0 26px 60px -26px rgba(0,0,0,.9);
}
.book__spine span {
  font-family: var(--antiqua);
  font-size: clamp(1.05rem, 1.9vw, 1.6rem);
  line-height: 1.18;
  color: var(--gold-hi);
  text-align: center;
}
.book__body { position: relative; z-index: 1; }
.book__title {
  font-family: var(--antiqua);
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 300; line-height: 1; letter-spacing: -.02em;
}
.book__txt { margin-top: var(--s4); color: var(--tx-on-ink-soft); max-width: 52ch; }
.book__tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.book__tag {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 12px; border: 1px solid var(--rule-ink); border-radius: 999px;
  color: var(--tx-on-ink-soft);
}
.book__acts { margin-top: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s3); }
@media (max-width: 860px) {
  .book__plate { grid-template-columns: 1fr; }
  .book__spine { max-width: 220px; }
}

/* ══════════════ БЛОГ ══════════════ */

.bl__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s6); }
.bl__card {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
  padding-top: var(--s4);
}
.bl__media {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--r);
  background: var(--paper-3);
  margin-bottom: var(--s4);
}
.bl__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--e-out);
}
.bl__card:hover .bl__media img { transform: scale(1.05); }
.bl__cat {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-txt);
}
.bl__title {
  font-family: var(--antiqua);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  line-height: 1.16; font-weight: 400;
  margin-top: var(--s2);
}
.bl__ex { font-size: var(--fs-sm); color: var(--tx-soft); line-height: 1.7; margin-top: var(--s3); }
.bl__foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: var(--s4);
  font-size: var(--fs-cap); letter-spacing: .12em; text-transform: uppercase;
  color: var(--tx-mute);
}
.bl__foot .r { color: var(--accent-txt); }
@media (max-width: 900px) { .bl__grid { grid-template-columns: 1fr; gap: var(--s7); } }

/* ══════════════ CTA ══════════════ */

.cta { background: var(--ink); color: var(--tx-on-ink); position: relative; overflow: hidden; }
.cta__glow {
  position: absolute; left: 50%; bottom: -46vh; transform: translateX(-50%);
  width: 120vw; max-width: 1400px; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,97,.20), transparent 62%);
  pointer-events: none;
}
.cta__in { position: relative; z-index: 1; text-align: center; display: grid; gap: var(--s5); justify-items: center; }
.cta__title {
  font-family: var(--antiqua);
  font-size: clamp(2.6rem, 8vw, 7rem);
  font-weight: 300; line-height: .96; letter-spacing: -.03em;
  max-width: 24ch;
  text-wrap: balance;
}
.cta__title em { font-style: italic; color: var(--gold); }
.cta__txt { color: var(--tx-on-ink-soft); max-width: 48ch; font-size: var(--fs-lead); }
.cta__acts { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; margin-top: var(--s3); }
.cta__meta {
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); justify-content: center;
  margin-top: var(--s6); padding-top: var(--s5);
  border-top: 1px solid var(--rule-ink);
  width: 100%; max-width: 820px;
  color: var(--tx-on-ink-mute);
}
.cta__meta a { font-size: var(--fs-sm); transition: color var(--t-fast); }
.cta__meta a:hover { color: var(--gold); }

/* ══════════════ ПОДВАЛ ══════════════ */

.ft { background: var(--ink); color: var(--tx-on-ink); border-top: 1px solid var(--rule-ink); }
.ft__in { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px,7vw,96px) var(--gut) var(--s6); }
.ft__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: var(--s7) var(--s6);
  padding-bottom: var(--s7);
  border-bottom: 1px solid var(--rule-ink);
}
.ft__mark {
  font-family: var(--antiqua); font-size: 1.9rem; line-height: 1; font-weight: 600;
}
.ft__mark em { font-style: normal; color: var(--gold); }
.ft__sub { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; opacity: .5; margin-top: 4px; }
.ft__addr {
  display: inline-flex; gap: var(--s3); align-items: flex-start;
  margin-top: var(--s5); font-size: var(--fs-sm); color: var(--tx-on-ink-soft);
  max-width: 32ch; line-height: 1.6;
  transition: color var(--t-fast);
}
.ft__addr:hover { color: var(--gold); }
.ft__addr svg { flex: none; margin-top: 4px; width: 12px; height: 12px; }
.ft__soc { display: flex; gap: var(--s2); margin-top: var(--s5); }
.ft__soc a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--rule-ink); border-radius: 50%;
  font-size: 11px; letter-spacing: .06em;
  transition: border-color var(--t-fast), color var(--t-fast), background-color var(--t-fast);
}
.ft__soc a:hover { border-color: var(--gold); color: var(--gold); }
.ft__col-t {
  font-size: var(--fs-cap); letter-spacing: var(--ls-cap); text-transform: uppercase;
  color: var(--gold); margin-bottom: var(--s5);
}
.ft__col ul { display: grid; gap: var(--s3); }
.ft__col a {
  font-size: var(--fs-sm); color: var(--tx-on-ink-soft);
  display: inline-block;
  transition: color var(--t-fast), transform var(--t-mid) var(--e-out);
}
.ft__col a:hover { color: var(--gold); transform: translateX(4px); }
.ft__bottom {
  display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between;
  padding-top: var(--s5);
  font-size: var(--fs-cap); letter-spacing: .08em; color: var(--tx-on-ink-mute);
}
@media (max-width: 900px) {
  .ft__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ft__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .ft__grid { grid-template-columns: 1fr; } }

/* ══════════════ ПЛАВАЮЩИЕ ЭЛЕМЕНТЫ ══════════════ */

.wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 5500;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--ink);
  box-shadow: 0 14px 34px -12px rgba(201,169,97,.7);
  transition: transform var(--t-mid) var(--e-out), box-shadow var(--t-mid);
}
.wa:hover { transform: scale(1.08); box-shadow: 0 18px 44px -12px rgba(201,169,97,.9); }
.wa svg { width: 26px; height: 26px; fill: currentColor; }

.totop {
  position: fixed; right: 22px; bottom: 88px; z-index: 5500;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--rule-ink);
  background: rgba(5,20,31,.7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity var(--t-mid), transform var(--t-mid) var(--e-out), border-color var(--t-fast), color var(--t-fast);
}
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { border-color: var(--gold); color: var(--gold); }
.totop svg { width: 16px; height: 16px; }

/* ══════════════ ПОИСК ══════════════ */

.palette {
  position: fixed; inset: 0; z-index: 8500;
  display: grid; place-items: start center;
  padding: 12vh var(--gut) var(--s6);
  background: rgba(5,20,31,.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-mid) var(--e-out), visibility var(--t-mid);
}
.palette.is-open { opacity: 1; visibility: visible; }
.palette__box {
  width: min(680px, 100%);
  background: var(--ink-2);
  border: 1px solid var(--rule-gold);
  border-radius: var(--r-lg);
  overflow: hidden;
  transform: translateY(-14px);
  transition: transform .5s var(--e-out);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9);
}
.palette.is-open .palette__box { transform: none; }
.palette__field { display: flex; align-items: center; gap: var(--s4); padding: var(--s5); border-bottom: 1px solid var(--rule-ink); }
.palette__field svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.palette__input {
  flex: 1; background: none; border: 0; outline: none;
  color: var(--tx-on-ink); font-size: 1.1rem; font-family: var(--sans);
  min-height: 30px;
}
.palette__input::placeholder { color: var(--tx-on-ink-mute); }
.palette__res { max-height: 46vh; overflow-y: auto; }
.palette__res a {
  display: block; padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--rule-ink-2);
  transition: background-color var(--t-fast);
}
.palette__res a:hover, .palette__res a.is-sel { background: rgba(201,169,97,.1); }
.palette__t { font-size: var(--fs-sm); font-weight: 500; }
.palette__s { font-size: 11px; color: var(--tx-on-ink-mute); margin-top: 3px; }
.palette__empty { padding: var(--s6) var(--s5); color: var(--tx-on-ink-mute); font-size: var(--fs-sm); text-align: center; }
.palette__hint { padding: var(--s3) var(--s5); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-on-ink-mute); border-top: 1px solid var(--rule-ink); }
.palette mark { background: rgba(201,169,97,.28); color: var(--gold-hi); border-radius: 2px; }
