/* «Энкратия» на сайте: телефон с живыми экранами приложения, окна и галерея.
   Экраны красятся темой приложения через переменные (--bg, --prim, --ter …) на .enk-phone.
   Размеры внутри экрана — в em: шрифт экрана привязан к ширине телефона. */

.enk-phone {
  --bg:#0B0807; --surf:#130D0B; --sv:#1E1512; --prim:#CC6A44; --onprim:#1D0A03; --ter:#C9A05A;
  --text:#E7DCCF; --muted:#A49486; --line:#3D2B22; --err:#DB5A4E;
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 14% / 6.5%;
  background: linear-gradient(145deg, #2b2621 0%, #0d0b09 38%, #1a1714 100%);
  box-shadow:
    0 0 0 1px rgba(234, 224, 207, 0.12),
    0 50px 90px -30px rgba(0, 0, 0, 0.75),
    0 20px 40px rgba(0, 0, 0, 0.35);
  container-type: inline-size;
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
}

.enk-phone::before {
  /* боковые кнопки */
  content: "";
  position: absolute;
  right: -1.2%;
  top: 19%;
  width: 1.2%;
  height: 11%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #2b2621, #3a332c);
}

.enk-screen {
  position: absolute;
  inset: 2.3%;
  border-radius: 12% / 5.4%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Philosopher', Georgia, 'Times New Roman', serif;
  font-size: 9.6px;
  font-size: 3.2cqw;
  line-height: 1.35;
  text-align: left;
  transition: background-color .5s ease, color .5s ease;
}

.enk-screen * { box-sizing: border-box; }

.enk-screen::after {
  /* блик стекла */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0) 32%);
  z-index: 20;
}

.enk-status {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4.6em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6em 2.4em 0;
  font-family: 'Marcellus', 'Philosopher', serif;
  font-size: 1em;
  letter-spacing: .06em;
  color: var(--muted);
  z-index: 5;
}

.enk-status::after {
  /* камера-точка */
  content: "";
  position: absolute;
  left: 50%;
  top: 1.35em;
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #000;
  box-shadow: 0 0 0 .18em rgba(255,255,255,.04);
}

.enk-status i {
  display: inline-block;
  width: .55em; height: .55em;
  margin-left: .35em;
  background: currentColor;
  opacity: .8;
  transform: rotate(45deg);
}

.enk-body {
  position: absolute;
  top: 5.4em; left: 0; right: 0; bottom: 6.6em;
  padding: 0 1.9em;
  display: flex;
  flex-direction: column;
  gap: 1.15em;
  overflow: hidden;
}

.enk-body.full { bottom: 0; padding-bottom: 2em; }
.enk-body.center { align-items: center; text-align: center; }

.enk-nav {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6.6em;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 1em 1.4em 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: var(--bg);
  z-index: 4;
}

.enk-nav::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: .9em;
  width: 11em;
  height: .32em;
  border-radius: 1em;
  transform: translateX(-50%);
  background: var(--muted);
  opacity: .35;
}

.enk-nav span {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
  opacity: .7;
}

.enk-nav span.on { color: var(--prim); opacity: 1; }

.enk-nav span.on::after {
  content: "";
  width: .55em; height: .55em;
  margin-top: .45em;
  background: var(--prim);
  transform: rotate(45deg);
}

.enk-nav svg { width: 2.3em; height: 2.3em; }

.enk-ico { width: 1em; height: 1em; flex: none; }

/* ——— общий язык экранов ——— */

.enk-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.2em;
}

.enk-lbl {
  font-size: 1em;
  font-weight: 700;
  letter-spacing: .32em;
  color: var(--ter);
  text-transform: uppercase;
  white-space: nowrap;
}

.enk-title {
  font-size: 1.15em;
  letter-spacing: .5em;
  color: var(--text);
  font-weight: 700;
}

.enk-muted { color: var(--muted); }
.enk-small { font-size: 1.1em; line-height: 1.4; }

.enk-plq {
  position: relative;
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 1.3em;
  padding: 1.5em 1.6em;
  overflow: hidden;
}

.enk-wm {
  position: absolute;
  right: -1.2em;
  top: -1.4em;
  width: 9em;
  height: 9em;
  color: var(--ter);
  opacity: .07;
}

.enk-h {
  font-weight: 700;
  font-size: 1.95em;
  line-height: 1.25;
  color: var(--text);
}

.enk-go {
  display: flex;
  align-items: center;
  gap: .8em;
  font-size: .98em;
  letter-spacing: .2em;
  color: var(--ter);
  font-weight: 700;
}

.enk-go { white-space: nowrap; letter-spacing: .16em; }

.enk-go::before {
  content: "";
  width: 1.8em;
  height: 1px;
  background: currentColor;
  opacity: .8;
  flex: none;
}

.enk-ladder { display: flex; gap: .5em; margin-top: .6em; }
.enk-ladder span { min-width: 2.4em; padding: .3em .4em; border: 1px solid var(--line); border-radius: 2em; font-family: 'Marcellus', serif; font-size: 1em; color: var(--muted); }
.enk-ladder span.on { border-color: var(--ter); color: var(--ter); }

.enk-dia {
  display: inline-block;
  width: .9em;
  height: .9em;
  border: 1.5px solid var(--line);
  transform: rotate(45deg);
  flex: none;
}

.enk-dia.on { background: var(--ter); border-color: var(--ter); }
.enk-dia.red { background: var(--err); border-color: var(--err); }

.enk-dias { display: inline-flex; gap: .75em; align-items: center; }

.enk-chev {
  width: 1.4em; height: 1.4em;
  color: var(--muted);
}

.enk-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4.4em;
  border-radius: 1.1em;
  background: var(--prim);
  color: var(--onprim);
  font-weight: 700;
  font-size: 1.1em;
  letter-spacing: .32em;
  flex: none;
}

.enk-btn.out {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 1em;
  letter-spacing: .26em;
}

.enk-row { display: flex; gap: .8em; }
.enk-row > * { flex: 1; }

.enk-chips { display: flex; flex-wrap: wrap; gap: .6em; }

.enk-chip {
  padding: .55em 1.1em;
  border: 1px solid var(--line);
  border-radius: 2em;
  color: var(--muted);
  font-size: 1.12em;
  white-space: nowrap;
}

.enk-chip.on { color: var(--text); border-color: var(--prim); background: color-mix(in srgb, var(--prim) 14%, transparent); }

.enk-div {
  height: 1px;
  background: var(--line);
  opacity: .8;
  flex: none;
}

/* ——— «Путь» ——— */

.enk-ring {
  position: relative;
  width: 74%;
  aspect-ratio: 1;
  margin: .2em auto 0;
  flex: none;
}

.enk-ring canvas,
.enk-astro canvas,
.enk-fill canvas,
canvas.enk-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.enk-ring-av {
  position: absolute;
  left: 15%; top: 15%;
  width: 70%; height: 70%;
}

.enk-ring-av svg, .enk-av svg { width: 100%; height: 100%; display: block; }

.enk-word { text-align: center; padding: 0 .6em; }

.enk-word-t {
  font-size: 2.05em;
  line-height: 1.38;
  color: var(--text);
}

.enk-word-s {
  margin-top: .9em;
  font-size: .98em;
  letter-spacing: .3em;
  color: var(--ter);
  font-weight: 700;
}

.enk-fact-m { font-size: 1.3em; line-height: 1.5; color: var(--muted); margin: .55em 0 1em; }

.enk-scrollhdr {
  display: flex;
  align-items: center;
  gap: 1em;
  padding-top: 1.1em;
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  margin-top: auto;
}

.enk-scrollhdr .enk-lbl { flex: 1; }

/* ——— свиток дня ——— */

.enk-seal4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .4em;
  text-align: center;
}

.enk-seal4 div { display: flex; flex-direction: column; align-items: center; gap: .55em; }
.enk-seal4 .enk-dia { width: 1.3em; height: 1.3em; }
.enk-seal4 b { font-family: 'Marcellus', serif; font-weight: 400; font-size: 1.65em; color: var(--text); line-height: 1; }
.enk-seal4 span { font-size: .9em; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }

.enk-stat {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  row-gap: .5em;
}

.enk-stat .enk-lbl { font-size: .92em; }
.enk-stat b { font-family: 'Marcellus', serif; font-weight: 400; font-size: 1.75em; color: var(--text); }
.enk-stat b small { font-family: 'Philosopher', serif; font-size: .62em; color: var(--muted); margin-left: .2em; }

.enk-bar {
  grid-column: 1 / -1;
  height: .38em;
  border-radius: 1em;
  background: color-mix(in srgb, var(--line) 80%, transparent);
  overflow: hidden;
}

.enk-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--prim);
}

.enk-cells {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: .38em;
}

.enk-cells i {
  aspect-ratio: 1;
  border-radius: .2em;
  background: color-mix(in srgb, var(--text) 75%, transparent);
}

.enk-cells i.x { background: var(--err); transform: rotate(45deg) scale(.82); border-radius: .1em; }
.enk-cells i.f { background: transparent; border: 1px solid var(--line); }

.enk-month {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: .42em;
}

.enk-month i {
  aspect-ratio: 1;
  border-radius: .25em;
  border: 1px solid var(--line);
}

.enk-month i.s { background: var(--err); border-color: var(--err); opacity: .85; }
.enk-month i.d { border: 0; background: var(--line); transform: scale(.4); border-radius: 50%; }
.enk-month i.t { border-color: var(--ter); border-radius: 50%; box-shadow: inset 0 0 0 .22em var(--bg), inset 0 0 0 1em color-mix(in srgb, var(--ter) 70%, transparent); }

/* ——— вечер ——— */

.enk-sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0; top: 8%;
  background: var(--surf);
  border-top: 1px solid var(--line);
  border-radius: 2.2em 2.2em 0 0;
  padding: 1.1em 1.9em 2em;
  display: flex;
  flex-direction: column;
  gap: 1.05em;
  z-index: 6;
}

.enk-sheet::before {
  content: "";
  width: 4em;
  height: .35em;
  border-radius: 1em;
  background: var(--line);
  align-self: center;
  margin-bottom: .3em;
}

.enk-veil { position: absolute; inset: 0; background: rgba(0,0,0,.55); z-index: 5; }

.enk-sheet-t { font-size: 2.2em; font-weight: 700; }

.enk-rate { display: flex; gap: 1.5em; padding: .2em .3em; }
.enk-rate .enk-dia { width: 1.6em; height: 1.6em; }
.enk-rate .enk-dia.on { background: var(--prim); border-color: var(--prim); }

.enk-field {
  border: 1px solid var(--line);
  border-radius: .9em;
  padding: .9em 1.1em;
  font-size: 1.25em;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
}

.enk-field.en { font-style: italic; display: flex; justify-content: space-between; gap: .8em; align-items: flex-end; }
.enk-field.en span { font-style: normal; color: var(--ter); font-size: .82em; letter-spacing: .1em; white-space: nowrap; }

/* ——— лента ——— */

.enk-stack { position: relative; flex: 1; margin-top: .6em; }

.enk-card {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 3.5em;
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 1.6em;
  padding: 2em 1.9em;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  overflow: hidden;
}

.enk-card.b1 { transform: translateY(1.6em) scale(.94); opacity: .55; }
.enk-card.b2 { transform: translateY(3.1em) scale(.88); opacity: .28; }

.enk-card-t { font-size: 2.4em; font-weight: 700; line-height: 1.2; }
.enk-card-x { font-size: 1.38em; line-height: 1.55; color: var(--muted); }
.enk-card-x b { color: var(--text); font-weight: 400; }
.enk-card .enk-go { margin-top: auto; }

.enk-hint { text-align: center; letter-spacing: .3em; font-size: .92em; color: var(--muted); text-transform: uppercase; }

/* ——— английский ——— */

.enk-flip {
  position: relative;
  flex: 1;
  perspective: 80em;
  margin: .4em 0 .2em;
}

.enk-flip-in {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}

.enk-flip.on .enk-flip-in { transform: rotateY(180deg); }

.enk-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 1.6em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9em;
  padding: 2em 1.6em;
  text-align: center;
}

.enk-face.back { transform: rotateY(180deg); }
.enk-face .enk-lbl { position: absolute; top: 1.8em; left: 0; right: 0; }
.enk-word-en { font-size: 3.6em; font-weight: 700; color: var(--text); line-height: 1.1; }
.enk-word-ru { font-size: 2.6em; font-weight: 700; color: var(--text); line-height: 1.15; }
.enk-ex { font-size: 1.35em; font-style: italic; color: var(--text); opacity: .9; }
.enk-exru { font-size: 1.2em; color: var(--muted); }

.enk-say {
  position: absolute;
  right: 1.4em; bottom: 1.4em;
  width: 2.6em; height: 2.6em;
  color: var(--ter);
}

/* ——— чтение ——— */

.enk-shelves { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7em; }

.enk-shelf {
  border: 1px solid var(--line);
  background: var(--surf);
  border-radius: 1.1em;
  padding: 1.1em .6em .9em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55em;
  font-size: .95em;
  letter-spacing: .2em;
  color: var(--text);
  font-weight: 700;
}

.enk-shelf svg { width: 2.7em; height: 2.7em; color: var(--ter); }
.enk-shelf small { font-size: .9em; letter-spacing: .05em; color: var(--muted); font-weight: 400; }

/* ——— ритм ——— */

.enk-astro { position: relative; width: 78%; aspect-ratio: 1; margin: 0 auto; flex: none; }

.enk-tiles4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6em; }

.enk-tile {
  border: 1px solid var(--line);
  background: var(--surf);
  border-radius: 1em;
  padding: .9em .3em .7em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5em;
  font-size: .9em;
  color: var(--muted);
}

.enk-tile svg { width: 2.4em; height: 2.4em; color: var(--ter); }

/* ——— наставник ——— */

.enk-mav { width: 62%; aspect-ratio: 1; margin: .4em auto 0; flex: none; }
.enk-mname { font-size: 1.5em; letter-spacing: .5em; font-weight: 700; color: var(--text); text-align: center; padding-left: .5em; }
.enk-mtitle { text-align: center; color: var(--muted); font-size: 1.2em; margin-top: -.6em; }
.enk-creed { text-align: center; font-size: 1.75em; line-height: 1.35; font-style: italic; color: var(--text); padding: 0 .6em; }

.enk-princ { display: flex; flex-direction: column; gap: .8em; }
.enk-princ div { display: flex; gap: .9em; font-size: 1.22em; line-height: 1.45; color: var(--text); }
.enk-princ div::before { content: ""; width: .6em; height: .6em; margin-top: .45em; background: var(--ter); transform: rotate(45deg); flex: none; }

/* ——— кривая дней ——— */

.enk-tabs { display: flex; gap: 1.6em; border-bottom: 1px solid var(--line); }
.enk-tabs span { padding: .6em 0; font-size: .95em; letter-spacing: .22em; color: var(--muted); font-weight: 700; border-bottom: 1.5px solid transparent; margin-bottom: -1px; }
.enk-tabs span.on { color: var(--text); border-color: var(--prim); }

.enk-big { font-family: 'Marcellus', serif; font-size: 4.4em; line-height: 1; color: var(--text); }
.enk-big small { font-family: 'Philosopher', serif; font-size: .3em; color: var(--muted); letter-spacing: .05em; }

.enk-cal {
  display: grid;
  grid-template-columns: 2.4em repeat(5, 1fr);
  gap: .55em;
  align-items: center;
}

.enk-cal span { font-size: .95em; color: var(--muted); letter-spacing: .1em; }

.enk-cal i {
  aspect-ratio: 1;
  border-radius: .3em;
  background: color-mix(in srgb, var(--text) 72%, transparent);
  justify-self: center;
  width: 62%;
}

.enk-cal i.x { background: var(--err); transform: rotate(45deg) scale(.86); border-radius: .12em; }
.enk-cal i.f { background: transparent; border: 1px solid var(--line); }
.enk-cal i.n { background: var(--line); width: 22%; border-radius: 50%; }
.enk-cal i.t { box-shadow: 0 0 0 .25em var(--bg), 0 0 0 .4em var(--ter); }

/* ——— заслон и будильник ——— */

.enk-veilui {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 2.2em 2.4em;
  text-align: center;
  z-index: 3;
}

.enk-who { font-size: 1.15em; letter-spacing: .55em; color: var(--ter); font-weight: 700; padding-left: .55em; }
.enk-phrase { font-size: 2.35em; font-weight: 700; line-height: 1.22; margin: 1em 0; color: var(--text); }
.enk-why { font-size: 1.25em; line-height: 1.45; color: var(--muted); margin-bottom: 1.8em; }
.enk-veilui .enk-btn { border-radius: 4em; }
.enk-veilui .enk-row { margin-top: .8em; }
.enk-veilui .enk-btn.out { font-size: .95em; letter-spacing: .2em; }

.enk-wake {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 2.6em;
  z-index: 3;
}

.enk-clock { font-family: 'Marcellus', serif; color: var(--text); letter-spacing: .08em; font-size: 5.4em; line-height: 1; }
.enk-steps { font-family: 'Marcellus', serif; font-size: 1.5em; letter-spacing: .2em; color: var(--ter); margin-top: .5em; }

/* ——— рабочий стол с виджетами ——— */

.enk-home { position: absolute; inset: 0; }
.enk-wall { position: absolute; inset: 0; background: radial-gradient(120% 70% at 20% 10%, #232a33 0%, #0e1116 55%, #1d1410 100%); }
.enk-wg { position: absolute; overflow: hidden; }
.enk-wg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.enk-wg .in { position: absolute; inset: 0; padding: 1.2em 1.4em; display: flex; flex-direction: column; }
.enk-wk { font-weight: 700; font-size: .95em; letter-spacing: .35em; color: var(--ter); }
.enk-wbig { font-weight: 700; color: var(--text); }
.enk-wsm { font-size: 1.1em; color: var(--muted); line-height: 1.35; }
.enk-phone[data-wstyle="air"] .enk-wg .in { text-shadow: 0 1px 8px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.8); }
.enk-wbtn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5em; font-weight: 700; font-size: .85em; letter-spacing: .25em; color: var(--text); }
.enk-wbtn svg { width: 2em; height: 2em; }
.enk-dock { position: absolute; left: 0; right: 0; bottom: 3.2em; display: flex; justify-content: space-around; padding: 0 2.6em; }
.enk-dock i { width: 4.4em; height: 4.4em; border-radius: 1.4em; background: rgba(255,255,255,.09); display: block; }

/* ——— окно (заглушка скачивания) и галерея ——— */

.enk-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10, 8, 6, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}

.enk-modal.open { opacity: 1; visibility: visible; transition: opacity .35s ease; }

.enk-modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: clamp(1.8rem, 5vw, 2.6rem);
  border-radius: 20px;
  background: linear-gradient(180deg, #221d18 0%, #17130f 100%);
  border: 1px solid rgba(234, 224, 207, 0.14);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  color: var(--text-primary, #DCD1BE);
  transform: translateY(18px) scale(.98);
  transition: transform .45s cubic-bezier(.16,1,.3,1);
}

.enk-modal.open .enk-modal-card { transform: none; }

.enk-modal-x {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(234, 224, 207, 0.16);
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.enk-modal-x:hover { border-color: var(--color-accent, #D9823B); color: var(--color-accent, #D9823B); }
.enk-modal-x svg { width: 18px; height: 18px; }

.enk-modal h3 {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  font-weight: 500;
  line-height: 1.05;
  margin: .2rem 0 1rem;
  padding-right: 2.5rem;
}

.enk-modal p { color: var(--text-secondary, #A59A8B); line-height: 1.65; margin: 0 0 1rem; font-size: .98rem; }
.enk-modal .enk-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .22em; color: var(--color-accent, #D9823B); text-transform: uppercase; }
.enk-modal .btn { width: 100%; margin-top: .4rem; }
.enk-modal-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 0; }
.enk-modal-meta span { font-size: .78rem; padding: .35rem .7rem; border: 1px solid rgba(234,224,207,.12); border-radius: 100px; color: var(--text-secondary, #A59A8B); }

.enk-gal { padding: 0; }

.enk-gal-card {
  position: relative;
  width: min(1180px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(18px);
  transition: transform .45s cubic-bezier(.16,1,.3,1);
}

.enk-modal.open .enk-gal-card { transform: none; }

.enk-gal-stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0d0b09;
  border: 1px solid rgba(234, 224, 207, 0.12);
  display: grid;
  place-items: center;
  min-height: 200px;
}

.enk-gal-stage img { display: block; width: 100%; height: auto; max-height: calc(100vh - 170px); object-fit: contain; image-rendering: pixelated; }

.enk-gal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text-secondary, #A59A8B); font-size: .9rem; }
.enk-gal-bar b { color: var(--text-primary, #DCD1BE); font-weight: 600; }
.enk-gal-nav { display: flex; gap: 8px; flex: none; }

.enk-gal-nav button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(234, 224, 207, 0.16);
  background: rgba(20,17,14,.6);
  color: var(--text-primary, #DCD1BE);
  display: grid; place-items: center;
  cursor: pointer;
}

.enk-gal-nav button:hover { border-color: var(--color-accent, #D9823B); color: var(--color-accent, #D9823B); }
.enk-gal-nav svg { width: 18px; height: 18px; }

/* ——— прямые цифры: в Cormorant «1.0.0» и «38 000» иначе читаются как «I.o.o» ——— */

.enk-modal h3, .ek-page h1, .ek-page h2, .ek-page h3, .ek-num b, .nx-time, .bento-stats b, .work-title, .ek-facts, .poster-title {
  font-variant-numeric: lining-nums;
}

/* ——— QR и мелочи ——— */

.enk-qr { display: block; width: 100%; height: auto; border-radius: 10px; background: #EAE0CF; padding: 8px; image-rendering: pixelated; }

.enk-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .enk-flip-in, .enk-modal, .enk-modal-card { transition: none !important; }
}
