/* Меч Аллаха — оформление презентаций (сталь, медь, багровый). Холст 1920×1080, масштабируется под окно. */

:root {
  --ink: #08090b;
  --text: #f1ece4;
  --muted: rgba(241, 236, 228, .72);
  --faint: rgba(241, 236, 228, .45);
  --gold: #dc8f52;
  --gold-2: #f4c897;
  --ember: #e5503c;
  --blood: #b8281e;
  --steel: #aebac6;
  --steel-2: #75828f;
  --sky: #8fc3ff;
  --green: #9fd49a;
  --violet: #b9acff;
  --glass: rgba(10, 11, 14, .74);
  --glass-2: rgba(19, 20, 24, .84);
  --line: rgba(220, 143, 82, .26);
  --head: Oswald, "Arial Narrow", sans-serif;
  --paper: #f8f0de;
  --paper-2: #efe0c0;
  --paper-ink: #2a2017;
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--ink);
  color: var(--text);
  overflow: hidden;
  font-family: Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- фон ---------- */

.bgs { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.bg {
  position: absolute; inset: -3%;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.6s ease;
  animation: drift 60s ease-in-out infinite alternate;
}
.bg.on { opacity: 1; }
@keyframes drift {
  from { transform: scale(1.0) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.2%, -.8%, 0); }
}
.shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, rgba(8, 9, 11, .30), rgba(8, 9, 11, .84) 100%),
    linear-gradient(180deg, rgba(20, 8, 6, .30), rgba(8, 9, 11, .58));
  transition: opacity 1.2s ease, background 1.2s ease;
}
body[data-shade="soft"] .shade { opacity: .55; }
body[data-shade="deep"] .shade {
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, rgba(8, 9, 11, .58), rgba(8, 9, 11, .93) 100%),
    linear-gradient(180deg, rgba(20, 8, 6, .5), rgba(8, 9, 11, .72));
}
.pattern {
  position: absolute; inset: 0;
  opacity: .09;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23dc8f52' stroke-width='1.2'%3E%3Cpath d='M80 72v16M72 80h16'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(rgba(220, 143, 82, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 143, 82, .35) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 160px 160px;
  background-position: 0 0, -80px -80px, -80px -80px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 40%, #000 100%);
}

/* ---------- сцена и слайды ---------- */

.deck { position: fixed; inset: 0; z-index: 1; }
.stage {
  position: absolute; left: 0; top: 0;
  width: 1920px; height: 1080px;
  transform-origin: 0 0;
}
.slide {
  position: absolute; inset: 0;
  padding: 78px 120px 96px;
  opacity: 0; visibility: hidden;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .9s var(--ease), visibility 0s linear .7s;
  display: flex; flex-direction: column;
}
.slide.on {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .8s ease .15s, transform 1s var(--ease) .15s, visibility 0s;
}
.slide.center { justify-content: center; align-items: center; text-align: center; }

.hud {
  position: absolute; left: 120px; right: 120px; bottom: 34px;
  display: flex; justify-content: space-between; align-items: center;
  font: 600 18px/1 Manrope, sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); pointer-events: none;
  transition: opacity .6s;
}
.hud .num b { color: var(--gold); font-weight: 800; }
.hud > span:first-child::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 14px; background: var(--ember); transform: rotate(45deg) translateY(-1px); }
body.no-hud .hud { opacity: 0; }

.progress { position: fixed; left: 0; right: 0; bottom: 0; height: 4px; z-index: 5; background: rgba(255, 255, 255, .06); }
.progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--ember));
  box-shadow: 0 0 12px rgba(229, 80, 60, .6);
  transition: width .6s var(--ease);
}

/* ---------- типографика ---------- */

h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 700; letter-spacing: .01em; }
h1 { font-size: 150px; line-height: .98; text-transform: uppercase; letter-spacing: .02em; }
h2 { font-size: 66px; line-height: 1.06; margin: 6px 0 30px; font-weight: 600; }
h3 { font-size: 34px; line-height: 1.15; margin: 0 0 12px; font-weight: 600; }
p { margin: 0 0 16px; }
.slide { font-size: 29px; line-height: 1.45; font-weight: 500; }
.kicker {
  display: inline-flex; align-items: center; gap: 18px;
  font: 800 21px/1 Manrope, sans-serif; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold);
}
.kicker::before { content: ""; width: 54px; height: 3px; background: linear-gradient(90deg, transparent, var(--ember)); }
.center .kicker::after { content: ""; width: 54px; height: 3px; background: linear-gradient(90deg, var(--ember), transparent); }
.lead { font-size: 36px; line-height: 1.4; color: var(--muted); font-weight: 500; }
.small { font-size: 23px; line-height: 1.45; color: var(--muted); }
.tiny { font-size: 19px; line-height: 1.4; color: var(--faint); }
b, strong { font-weight: 800; color: var(--gold-2); }
em { font-style: normal; color: var(--gold); }
.gold { color: var(--gold); }
.ember { color: var(--ember); }
.sky { color: var(--sky); }
.green { color: var(--green); }
.violet { color: var(--violet); }
.steel { color: var(--steel); }
.blood { color: #ff7a66; }
.muted { color: var(--muted); }
.serif { font-family: "Playfair Display", Georgia, serif; }
.saw { font-family: Amiri, serif; font-weight: 400; }

.ar, .ar-q {
  font-family: "Amiri Quran", Amiri, serif;
  direction: rtl; unicode-bidi: isolate;
  font-weight: 400; color: #fbefd6;
}
.ar-h { font-family: Amiri, serif; direction: rtl; unicode-bidi: isolate; color: #fbefd6; }

/* ---------- блоки ---------- */

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(12px);
}
.glass.tight { padding: 22px 28px; }
.paper {
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--paper-ink);
  border-radius: var(--r);
  padding: 30px 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.paper b, .paper strong { color: #8a4b12; }
.paper .muted, .paper .small { color: rgba(42, 32, 23, .72); }
.paper .ar, .paper .ar-h { color: #3a2410; }

.row { display: flex; gap: 36px; }
.col { display: flex; flex-direction: column; gap: 22px; }
.grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.fill { flex: 1; min-height: 0; }
.mt { margin-top: 26px; }
.mt-s { margin-top: 14px; }
.mb0 { margin-bottom: 0; }

/* аят */
.ayah { position: relative; text-align: center; }
.ayah .ar { font-size: 50px; line-height: 2.05; margin: 0 0 6px; }
.ayah.big .ar { font-size: 62px; }
.ayah.sm .ar { font-size: 40px; line-height: 1.95; }
.ayah.paper.sm .ar { font-size: 34px; line-height: 2.6; margin-bottom: 0; padding-bottom: 18px; }
.ayah.paper.sm .tr { font-size: 22px; line-height: 1.45; }
.ayah.xs .ar { font-size: 34px; line-height: 1.9; }
.ayah .tr { font-size: 27px; line-height: 1.45; color: var(--muted); margin: 0; }
.ayah.sm .tr, .ayah.xs .tr { font-size: 23px; }
.ayah cite, .src {
  display: inline-block; margin-top: 10px;
  font: 700 17px/1.2 Manrope, sans-serif; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); font-style: normal;
}
.ayah .ar .hl, .hl { color: var(--gold-2); text-shadow: 0 0 22px rgba(244, 200, 151, .45); }
.ayah .tr .hl { color: var(--gold-2); text-shadow: none; font-weight: 700; }
.paper .ayah .ar .hl, .paper .hl { color: #a35a12; text-shadow: none; }
.paper .ayah .tr { color: rgba(42, 32, 23, .78); }
.hl-a { color: #f6d595 !important; }
.hl-b { color: #8fd0ff !important; }
.hl-c { color: #b9e59a !important; }
.hl-d { color: #ffa98a !important; }
.paper .hl-a { color: #a35a12 !important; }
.paper .hl-b { color: #1f6aa6 !important; }
.paper .hl-c { color: #3f7d22 !important; }
.paper .hl-d { color: #b4432a !important; }
.ayah-orn {
  display: block; width: 140px; height: 14px; margin: 0 auto 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 14'%3E%3Cg fill='none' stroke='%23dc8f52' stroke-width='1.4'%3E%3Cpath d='M0 7H54M86 7H140'/%3E%3Cpath d='M70 1 76 7 70 13 64 7Z'/%3E%3Ccircle cx='59' cy='7' r='1.6' fill='%23dc8f52'/%3E%3Ccircle cx='81' cy='7' r='1.6' fill='%23dc8f52'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

/* хадис и цитата */
.quote {
  position: relative;
  border-left: 4px solid var(--gold);
  background: linear-gradient(90deg, rgba(220, 143, 82, .12), rgba(220, 143, 82, .02));
  border-radius: 0 var(--r) var(--r) 0;
  padding: 22px 30px;
}
.quote p { margin: 0; }
.quote .src { margin-top: 10px; }
.quote.ember { border-color: var(--ember); background: linear-gradient(90deg, rgba(224, 102, 60, .14), rgba(224, 102, 60, .02)); }
.quote.ember .src { color: var(--ember); }
.paper .quote { background: rgba(163, 90, 18, .08); border-color: #a35a12; }
.paper .quote .src { color: #8a4b12; }
.quote .ar-h { font-size: 36px; line-height: 1.7; display: block; margin-bottom: 6px; }

/* чипы и метки */
.tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  font: 800 16px/1 Manrope, sans-serif; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid currentColor; color: var(--gold);
}
.tag.ember { color: var(--ember); }
.tag.sky { color: var(--sky); }
.tag.green { color: var(--green); }
.tag.violet { color: var(--violet); }
.tag.solid { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* фото */
.photo {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--r);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .08);
  background: #111;
}
.photo img {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  transition: transform 14s ease-out;
}
.slide.on .photo img { transform: scale(1.12); }
.photo.still img, .slide.on .photo.still img { transform: none; transition: none; }
.photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 50px 22px 16px;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 12, .88));
  font-size: 20px; line-height: 1.35; color: rgba(243, 238, 228, .88);
}
.photo figcaption b { color: var(--gold-2); }

/* таблица сравнения */
table.cmp { width: 100%; border-collapse: separate; border-spacing: 0 8px; font-size: 25px; line-height: 1.35; }
table.cmp th {
  text-align: left; padding: 4px 20px 6px;
  font: 800 18px/1.2 Manrope, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}
table.cmp td {
  padding: 14px 20px; vertical-align: top;
  background: var(--glass-2);
  border-top: 1px solid rgba(255, 255, 255, .05); border-bottom: 1px solid rgba(0, 0, 0, .3);
}
table.cmp td:first-child { border-radius: 14px 0 0 14px; font-weight: 800; color: var(--gold-2); }
table.cmp td:last-child { border-radius: 0 14px 14px 0; }
table.cmp td + td { border-left: 1px solid rgba(255, 255, 255, .06); }
table.cmp tr.f td { transition: inherit; }
table.cmp .good { color: #c9efb8; }
table.cmp .bad { color: #ffb7a0; }
table.cmp td.c-rum { color: #ddd2ff; }
table.cmp td.c-per { color: #ffc2ad; }
table.cmp td.c-arab { color: #ffe3a8; background: rgba(60, 44, 18, .82); }
table.cmp th.c-rum { color: var(--violet); }
table.cmp th.c-per { color: var(--ember); }
table.cmp th.c-arab { color: var(--gold); }
.paper table.cmp td { background: rgba(255, 255, 255, .55); border-color: rgba(0, 0, 0, .05); }
.paper table.cmp td:first-child { color: #8a4b12; }
.paper table.cmp th { color: #8a4b12; }

/* факты-строки */
.facts { display: flex; flex-direction: column; gap: 14px; }
.fact {
  display: grid; grid-template-columns: 210px 1fr; gap: 22px; align-items: start;
  padding: 16px 22px; border-radius: 16px;
  background: var(--glass-2); border: 1px solid rgba(255, 255, 255, .05);
  font-size: 25px; line-height: 1.4;
}
.fact > :first-child {
  font: 800 17px/1.3 Manrope, sans-serif; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); padding-top: 5px;
}

/* карточки */
.card {
  position: relative;
  background: var(--glass-2); border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 18px; padding: 24px 26px;
  font-size: 24px; line-height: 1.42;
}
.card h3 { font-size: 30px; }
.inh > .card { font-size: inherit; }
.card .ico { width: 54px; height: 54px; margin-bottom: 10px; color: var(--gold); }
.card.dark { background: rgba(30, 10, 8, .74); border-color: rgba(224, 102, 60, .25); }
.card.dark h3 { color: #ffb7a0; }
.card .ar-h { font-size: 30px; }

/* цепочка-схема */
.chain { display: flex; align-items: stretch; gap: 0; }
.chain .node {
  flex: 1; min-width: 0;
  background: var(--glass-2); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px; padding: 16px 18px;
  font-size: 22px; line-height: 1.35;
}
.chain .node b { display: block; font-size: 17px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; color: var(--gold); }
.chain .node.hot { border-color: rgba(224, 102, 60, .55); background: rgba(48, 14, 10, .8); }
.chain .node.hot b { color: var(--ember); }
.chain .node.good { border-color: rgba(159, 212, 154, .5); background: rgba(16, 40, 24, .8); }
.chain .node.good b { color: var(--green); }
.chain .arr {
  flex: 0 0 46px; display: grid; place-items: center;
  color: var(--gold); font-size: 34px;
}
.chain-label {
  font: 800 18px/1 Manrope, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 10px;
}
.chain-label b { color: var(--text); letter-spacing: .06em; font-size: 26px; text-transform: none; font-family: "Playfair Display", serif; margin-right: 14px; }

/* лестница вниз */
.stairs { display: flex; flex-direction: column; gap: 10px; }
.stairs .st {
  display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center;
  padding: 14px 22px; border-radius: 14px;
  background: var(--glass-2); border: 1px solid rgba(255, 255, 255, .06);
  font-size: 24px; line-height: 1.4;
}
.stairs .st .n {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 28px/1 var(--head); color: var(--ink); background: var(--gold);
}
.stairs .st:nth-child(1) { margin-left: 0; }
.stairs .st:nth-child(2) { margin-left: 60px; filter: brightness(.94); }
.stairs .st:nth-child(3) { margin-left: 120px; filter: brightness(.88); }
.stairs .st:nth-child(4) { margin-left: 180px; filter: brightness(.82); }
.stairs .st:nth-child(5) { margin-left: 240px; filter: brightness(.76); }
.stairs .st:nth-child(n+3) .n { background: #b9782f; }
.stairs .st:nth-child(n+4) .n { background: var(--ember); }
.stairs .st:nth-child(5) .n { background: var(--blood); color: #fff; }

/* хронология */
.tl { position: relative; }
.tl-line { position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: linear-gradient(90deg, rgba(220, 143, 82, .2), var(--gold), rgba(220, 143, 82, .2)); }
.tl-ev { position: absolute; transform: translateX(-50%); text-align: center; width: 220px; }
.tl-ev .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); margin: 0 auto; box-shadow: 0 0 0 6px rgba(220, 143, 82, .18), 0 0 20px rgba(220, 143, 82, .6); }
.tl-ev .y { font: 700 34px/1 var(--head); color: var(--gold-2); margin: 10px 0 6px; }
.tl-ev .t { font-size: 21px; line-height: 1.3; color: var(--text); }
.tl-ev.battle .dot { background: var(--ember); box-shadow: 0 0 0 6px rgba(224, 102, 60, .2), 0 0 20px rgba(224, 102, 60, .6); }
.tl-ev.battle .y { color: #ffb08f; }
.tl-ev.up { bottom: 0; }

/* вертикальная хронология */
.vtl { position: relative; padding-left: 40px; display: flex; flex-direction: column; gap: 14px; }
.vtl::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(180deg, var(--violet), var(--ember), var(--gold)); border-radius: 3px; }
.vtl .ev { position: relative; font-size: 23px; line-height: 1.38; }
.vtl .ev::before { content: ""; position: absolute; left: -37px; top: 9px; width: 17px; height: 17px; border-radius: 50%; background: var(--ink); border: 3px solid var(--gold); }
.vtl .ev.per::before { border-color: var(--ember); }
.vtl .ev.rum::before { border-color: var(--violet); }
.vtl .ev.isl::before { background: var(--gold); }
.vtl .ev .y { font: 700 25px/1 var(--head); color: var(--gold-2); margin-right: 12px; }

/* перевёртыш «было → стало» */
.flips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.flip { perspective: 1400px; height: 210px; }
.flip .in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1s var(--ease); }
.flip.on .in { transform: rotateY(180deg); }
.flip .face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 18px; padding: 22px 26px;
  display: flex; flex-direction: column; justify-content: center;
  font-size: 25px; line-height: 1.35;
}
.flip .front { background: linear-gradient(160deg, #2a0f0b, #140808); border: 1px solid rgba(224, 102, 60, .35); color: #ffd9cc; }
.flip .back { background: linear-gradient(160deg, #fbf3e2, #efdfbd); color: var(--paper-ink); transform: rotateY(180deg); box-shadow: 0 20px 60px rgba(220, 143, 82, .25); }
.flip .face small { font: 800 15px/1 Manrope, sans-serif; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 10px; }
.flip .front small { color: var(--ember); }
.flips.big .face { font-size: 28px; line-height: 1.4; padding: 26px 30px; }
.flips.big .back b { font-size: 36px !important; }
.flip .back b { color: #93420e; }
.flip .back small { color: #a35a12; }

/* уроки-фонари */
.lamps { display: flex; flex-direction: column; gap: 14px; }
.lamp {
  display: grid; grid-template-columns: 70px 1fr; gap: 22px; align-items: start;
  padding: 18px 26px; border-radius: 18px;
  background: linear-gradient(90deg, rgba(220, 143, 82, .13), rgba(9, 11, 19, .72) 40%);
  border: 1px solid rgba(220, 143, 82, .22);
}
.lamp svg { width: 62px; height: 62px; color: var(--gold); filter: drop-shadow(0 0 12px rgba(244, 200, 151, .55)); }
.lamp h3 { font-size: 31px; margin: 2px 0 6px; color: var(--gold-2); }
.lamp p { margin: 0; font-size: 23px; line-height: 1.42; color: var(--muted); }

/* большие числа */
.stat { text-align: center; }
.stat .v { font: 700 104px/1 var(--head); color: var(--gold-2); }
.stat .l { font-size: 22px; color: var(--muted); margin-top: 6px; }

/* разделитель раздела */
.divider { justify-content: center; }
.divider .roman {
  font: 700 300px/0.8 var(--head);
  color: transparent; -webkit-text-stroke: 2px rgba(220, 143, 82, .6);
  margin-bottom: 20px;
}
.divider h1 { font-size: 132px; max-width: 1500px; }
.divider .lead { max-width: 1180px; margin-top: 26px; color: rgba(243, 238, 228, .86); }

/* вопросы */
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; }
.qa .q {
  background: var(--glass-2); border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px; padding: 18px 24px; font-size: 24px; line-height: 1.38;
}
.qa .q .n { font: 700 26px/1 var(--head); color: var(--gold); margin-right: 10px; }
.qa .q .a { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(220, 143, 82, .3); color: #ffe3a8; font-size: 22px; }

/* книги */
.book {
  display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: center;
}
.book .cover {
  height: 210px; border-radius: 6px 14px 14px 6px; position: relative;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .55), inset 6px 0 0 rgba(0, 0, 0, .25), inset 9px 0 0 rgba(255, 255, 255, .06);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 16px 14px 16px 22px;
  font-family: "Playfair Display", serif; line-height: 1.1;
}
.book .cover .ar-h { font-size: 24px; line-height: 1.4; color: inherit; }
.book .cover small { font: 700 11px/1.3 Manrope, sans-serif; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-top: 8px; }
.book .c1 { background: linear-gradient(160deg, #19432f, #0c2419); color: #f1d9a0; border: 1px solid rgba(241, 217, 160, .3); }
.book .c2 { background: linear-gradient(160deg, #5a1d16, #2c0d0a); color: #f6dcae; border: 1px solid rgba(246, 220, 174, .3); }

/* кирпичи */
.wall { display: flex; flex-direction: column-reverse; gap: 8px; align-items: center; }
.wall .brow { display: flex; gap: 8px; }
.wall .brow:nth-child(even) { margin-left: 70px; }
.wall .b {
  width: 132px; height: 56px; border-radius: 6px;
  background: linear-gradient(180deg, #d7b98a, #b48e5c);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), 0 6px 14px rgba(0, 0, 0, .3);
}
.wall .b.gap { background: transparent; box-shadow: inset 0 0 0 3px rgba(244, 200, 151, .7); border: 2px dashed rgba(244, 200, 151, .8); animation: pulse 1.6s ease-in-out infinite; }
.wall .b.gold { background: linear-gradient(180deg, #ffe7a6, #e8b25a); box-shadow: 0 0 40px rgba(244, 200, 151, .9), inset 0 -4px 0 rgba(0, 0, 0, .15); }
@keyframes pulse { 50% { opacity: .45; } }
.wall .b.gap { position: relative; }
.wall .b.gap:has(.gold.on) { animation: none; border-color: transparent; box-shadow: none; }
.wall .b.gap .gold { position: absolute; inset: -2px; width: auto; height: auto; }

/* титул */
.title-ar { font-size: 56px; line-height: 2.2; color: var(--gold); margin: 0; padding-top: 46px; }
.photo-note { position: absolute; right: 120px; bottom: 76px; max-width: 760px; margin: 0; text-align: right; color: rgba(243, 238, 228, .62); }

/* карта курса */
.tl2 { display: grid; grid-template-columns: repeat(20, 1fr); grid-template-rows: auto 40px auto; row-gap: 0; }
.tl2 .era {
  grid-row: 1; margin: 0 4px 14px; padding: 10px 0 0;
  border-top: 5px solid currentColor; text-align: center;
  font: 800 17px/1.2 Manrope, sans-serif; letter-spacing: .14em; text-transform: uppercase;
}
.tl2 .e1 { color: var(--violet); }
.tl2 .e2 { color: var(--gold); }
.tl2 .e3 { color: var(--green); }
.tl2 .rail { grid-row: 2; grid-column: 2 / 20; align-self: center; height: 4px; border-radius: 4px; background: linear-gradient(90deg, rgba(196, 178, 255, .5), var(--gold), rgba(159, 212, 154, .7)); }
.tl2 .ev { grid-row: 2 / 4; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 4px; }
.tl2 .ev .dot { width: 24px; height: 24px; margin-top: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(220, 143, 82, .18), 0 0 20px rgba(220, 143, 82, .6); }
.tl2 .ev .y { font: 700 32px/1 var(--head); color: var(--gold-2); margin: 14px 0 6px; }
.tl2 .ev .t { font-size: 19px; line-height: 1.3; }
.tl2 .ev.battle .dot { background: var(--ember); box-shadow: 0 0 0 6px rgba(224, 102, 60, .2), 0 0 20px rgba(224, 102, 60, .6); }
.tl2 .ev.battle .y { color: #ffb08f; }
.tl2 .ev.here .dot { background: #fff; box-shadow: 0 0 0 8px rgba(255, 255, 255, .18), 0 0 26px rgba(255, 255, 255, .7); }
.tl2 .ev.here .tag { margin-top: 10px; }

/* слова-числа */
.names { display: flex; flex-direction: column; gap: 4px; }
.names > div { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed rgba(220, 143, 82, .25); font-size: 25px; }
.names b { font: 700 44px/1 var(--head); color: var(--gold-2); }

/* переселение племён */
.mig { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 16px; }
.mig .m { display: grid; grid-template-columns: 210px 1fr; gap: 16px; align-items: baseline; padding: 11px 18px; border-radius: 14px; background: var(--glass-2); border: 1px solid rgba(255, 255, 255, .05); font-size: 21px; line-height: 1.35; }
.mig .m b { font-size: 23px; }
.mig .m span { color: var(--muted); }

/* избранный род */
.rings { position: relative; width: 720px; height: 720px; }
.rings .ring {
  position: absolute; left: 50%; top: 50%; border-radius: 50%;
  border: 2px solid rgba(220, 143, 82, .45);
  background: radial-gradient(circle, rgba(220, 143, 82, .02), rgba(220, 143, 82, .09));
  display: flex; justify-content: center;
}
.rings .ring span { margin-top: 18px; font: 800 18px/1.1 Manrope, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.rings .r1 { width: 720px; height: 720px; margin: -360px 0 0 -360px; border-color: rgba(220, 143, 82, .25); }
.rings .r2 { width: 580px; height: 580px; margin: -290px 0 0 -290px; border-color: rgba(220, 143, 82, .35); }
.rings .r3 { width: 440px; height: 440px; margin: -220px 0 0 -220px; }
.rings .r4 { width: 300px; height: 300px; margin: -150px 0 0 -150px; border-color: rgba(220, 143, 82, .7); }
.rings .r5 {
  width: 168px; height: 168px; margin: -84px 0 0 -84px; align-items: center;
  background: radial-gradient(circle, #ffe7a6, #e8b25a); border: 0;
  box-shadow: 0 0 60px rgba(244, 200, 151, .7);
}
.rings .r5 span { margin: 0; color: var(--ink); font: 900 24px/1.15 "Playfair Display", serif; letter-spacing: 0; text-transform: none; text-align: center; }

/* таблицы: варианты */
table.cmp th.green { color: var(--green); }
table.cmp th.ember { color: var(--ember); }
table.cmp.plain td:first-child { font-weight: 500; color: var(--text); }
table.cmp td.good, table.cmp.plain td.good { color: #d3f2c4; }
table.cmp td.bad, table.cmp.plain td.bad { color: #ffc4b0; }
table.cmp.twin td.good { background: rgba(14, 38, 22, .84); }
table.cmp.twin td.bad { background: rgba(44, 13, 9, .84); }
table.cmp.twin td.good b { color: #b9e59a; }
table.cmp.worship td { vertical-align: middle; padding: 10px 20px; }
table.cmp.worship td:first-child { font-size: 22px; line-height: 1.38; }
table.cmp.worship td:first-child b { color: #ffc4b0; }
table.cmp.ba th:first-child { color: var(--ember); }
table.cmp.ba th:last-child { color: #fff1cf; }
table.cmp.ba td { vertical-align: middle; }
table.cmp.ba td:first-child { background: rgba(40, 12, 9, .88); color: #ffcdbd; font-weight: 700; }
table.cmp.ba td:last-child { background: linear-gradient(180deg, var(--paper), var(--paper-2)); color: var(--paper-ink); border-color: rgba(0, 0, 0, .05); }
table.cmp.ba td:last-child b { color: #8a4b12; }
table.cmp.ba td:last-child .src { color: #8a4b12; margin: 0 0 0 8px; font-size: 14px; }
table.cmp.ba td:last-child .ar { color: #3a2410; }
table.cmp.ba td:last-child .tr { color: rgba(42, 32, 23, .82); }
table.cmp.ba td:last-child .ayah cite, table.cmp.ba td:last-child .ayah .an { color: #8a4b12; }
table.cmp.ba td:last-child .hl { text-shadow: none; }
table.cmp.ba td:last-child .hl-a { color: #a35a12 !important; }
table.cmp.ba td:last-child .hl-b { color: #1f6aa6 !important; }
table.cmp.ba td:last-child .hl-c { color: #3f7d22 !important; }
table.cmp.ba td:last-child .hl-d { color: #b4432a !important; }

/* арабские термины в карточках */
.term { float: right; margin: -4px 0 0 14px; font-size: 36px; line-height: 1.25; color: var(--gold); }
.card.idol { text-align: center; padding-top: 12px; }
.card.idol .term { float: none; display: block; margin: 0 0 2px; font-size: 64px; line-height: 1.5; color: var(--gold-2); text-shadow: 0 0 26px rgba(244, 200, 151, .35); }
.talb { font-size: 36px; line-height: 1.8; margin: 14px 0 10px; }

/* аят: дополнения */
.ayah > .tag { margin-bottom: 8px; }
.ayah .basm { font-size: .72em; line-height: 1.6; color: var(--gold-2); opacity: .85; margin: 0; }
.ayah .an { color: var(--gold); }
.paper .ayah .an, .paper .ayah cite { color: #8a4b12; }
.ayah.inl { text-align: left; }
.ayah.inl .ar { text-align: right; font-size: 30px; line-height: 1.75; margin: 4px 0 2px; }
.ayah.inl .tr { display: inline; font-size: 20px; line-height: 1.4; }
.ayah.inl cite { display: inline; margin: 0 0 0 8px; font-size: 13px; letter-spacing: .12em; white-space: nowrap; }
.chain .node .ayah.inl .tr { color: rgba(243, 238, 228, .85); }

/* войны */
.wars { display: flex; flex-direction: column; gap: 20px; }
.wars .chain .node { font-size: 20px; padding: 12px 16px; }
.wars .chain-label { margin-bottom: 8px; }

/* источники */
.src-h { font-family: Manrope, sans-serif; font-size: 22px; font-weight: 800; letter-spacing: .04em; margin-bottom: 8px; }
.credits-box { overflow: hidden; }
.credits { columns: 2; column-gap: 30px; margin: 0; padding-left: 22px; font-size: 14.5px; line-height: 1.38; color: var(--muted); }
.credits li { break-inside: avoid; margin-bottom: 7px; }
.credits b { color: var(--gold-2); font-weight: 700; }
.credits a { color: #f3dfb2; text-decoration: none; border-bottom: 1px solid rgba(244, 200, 151, .3); }
.slide a { color: var(--gold-2); }

/* ---------- фрагменты: пошаговое появление ---------- */

.f { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .75s var(--ease), filter .75s ease; }
.f.on { opacity: 1; transform: none; }
.f.l { transform: translateX(-46px); }
.f.r { transform: translateX(46px); }
.f.z { transform: scale(.9); }
.f.d { transform: translateY(-22px); }
.f.fade { transform: none; }
.f.blur { transform: none; filter: blur(14px); }
.f.l.on, .f.r.on, .f.z.on, .f.d.on { transform: none; }
.f.blur.on { filter: none; }
.f.drop { transform: translateY(-260px) rotate(-8deg); transition: opacity .3s ease, transform 1.1s cubic-bezier(.3, 1.4, .5, 1); }
.f.drop.on { transform: none; }
.off { opacity: .28 !important; filter: saturate(.4); transition: opacity .6s ease, filter .6s ease; }
.gone { display: none !important; }

svg .f { transform: none; transition: opacity .8s ease; }
svg .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: opacity .3s ease, stroke-dashoffset 2.4s ease-in-out; }
svg .draw.on { stroke-dashoffset: 0; }

.now-pulse.on { animation: glowp 2.4s ease-in-out 1; }
@keyframes glowp { 30% { box-shadow: 0 0 0 3px rgba(244, 200, 151, .6), 0 0 50px rgba(244, 200, 151, .45); } }

/* ---------- карты ---------- */

.map { display: block; width: 100%; height: auto; border-radius: var(--r); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); border: 1px solid rgba(220, 143, 82, .18); }
.map .grat { fill: none; stroke: rgba(255, 255, 255, .05); stroke-width: 1; }
.map .coast { fill: none; stroke: rgba(220, 143, 82, .38); stroke-width: 1.1; }
.map .lake { fill: #0f2032; stroke: rgba(143, 195, 255, .35); stroke-width: .8; }
.map .river { fill: none; stroke: #4a86b5; stroke-width: 1.6; stroke-linecap: round; opacity: .85; }
.map .emp { stroke: none; }
.map .emp.rum { fill: rgba(140, 108, 230, .46); }
.map .emp.per { fill: rgba(224, 96, 52, .46); }
.map .emp.aks { fill: rgba(110, 180, 110, .40); }
.map .emp.arab { fill: rgba(246, 200, 110, .40); }
.map text { font-family: Manrope, sans-serif; paint-order: stroke; stroke: rgba(7, 9, 15, .9); stroke-width: 5px; stroke-linejoin: round; }
.map .sea-l { font: italic 600 19px "Playfair Display", serif; fill: rgba(150, 190, 230, .55); letter-spacing: .06em; stroke: none; }
.map .emp-l { font: 700 40px var(--head); letter-spacing: .16em; }
.map .emp-s { font-weight: 700; font-size: 19px; fill: rgba(243, 238, 228, .85); }
.map .rum-l, .map .rum-t { fill: #d9ccff; }
.map .per-l, .map .per-t { fill: #ffb399; }
.map .aks-l, .map .aks-t { fill: #b9e6b0; }
.map .ind-l { fill: #a9d2ff; }
.map .arab-l { fill: #ffe3a8; }
.map .yem-l { fill: #cfeec8; font-size: 17px; }
.map .reg-l { font-weight: 800; font-size: 17px; letter-spacing: .24em; fill: rgba(244, 200, 151, .8); }
.map .reg-big { font: 600 26px var(--head); letter-spacing: .3em; fill: rgba(244, 200, 151, .92); }
.map .reg-desert { font: italic 700 22px "Playfair Display", serif; fill: rgba(243, 238, 228, .5); }
.map .reg-desert-s { font-size: 16px; font-weight: 600; fill: rgba(243, 238, 228, .45); }
.map .city circle { fill: #f3eee4; stroke: #07090f; stroke-width: 2; }
.map .city text { font-weight: 700; font-size: 19px; fill: #f3eee4; }
.map .city.cap circle { fill: var(--gold); r: 8; }
.map .city.cap text { font-size: 22px; font-weight: 800; fill: #fff4dc; }
.map .front { fill: none; stroke: #ff5a3c; stroke-width: 5; stroke-linecap: round; }
.map .front-glow { fill: none; stroke: #ff3a1c; stroke-width: 14; opacity: .7; }
.map .front-l text { font-weight: 800; font-size: 22px; fill: #ffb399; }
.map .front-l text.sub, .map .ally .sub { font-size: 16px; font-weight: 600; fill: rgba(243, 238, 228, .75); }
.map .ally text { font: 800 22px "Playfair Display", serif; }
.map .edge-l { font-weight: 800; font-size: 20px; letter-spacing: .2em; }
.map .mecca circle { fill: #ffd27a; stroke: #07090f; stroke-width: 2.5; }
.map .mecca text { font: 900 30px "Playfair Display", serif; fill: #ffe3a8; }
.map .mecca-glow { fill: #ffcf6e; opacity: .85; }
.map .mecca-glow.f { opacity: 0; }
.map .mecca-glow.f.on { opacity: .85; animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }
.map .route { fill: none; stroke-width: 4.5; stroke-linecap: round; }
.map .route.sum { stroke: #ffd27a; }
.map .route.win { stroke: #8fd0ff; }
.map .route-l text { font-weight: 800; font-size: 20px; }
.map .sum-t { fill: #ffd27a; }
.map .win-t { fill: #8fd0ff; }
.map .note { font: italic 600 15px Manrope, sans-serif; fill: rgba(243, 238, 228, .5); stroke: none; }

/* синхронный список рядом с картой */
.legend { display: flex; flex-direction: column; gap: 8px; }
.legend .it {
  display: grid; grid-template-columns: 18px 1fr; gap: 14px; align-items: start;
  padding: 8px 16px; border-radius: 14px; background: var(--glass-2); border: 1px solid rgba(255, 255, 255, .05);
  font-size: 20px; line-height: 1.32;
}
.legend .sw { width: 18px; height: 18px; border-radius: 5px; margin-top: 6px; }
.legend .it h3 { font-size: 22px; margin: 0 0 1px; font-family: Manrope, sans-serif; font-weight: 800; }

/* родословная урока 2 */
.nasab { display: flex; flex-direction: column; gap: 8px; }
.nasab .above { display: flex; justify-content: center; align-items: center; gap: 22px; }
.nasab .who {
  width: 320px; text-align: center; padding: 8px 14px 10px;
  border-radius: 16px; border: 1px solid rgba(220, 143, 82, .4);
  background: rgba(9, 11, 19, .55);
}
.nasab .who .ar-h { font-size: 36px; line-height: 1.15; color: var(--gold-2); }
.nasab .who b { display: block; margin-top: 0; font-size: 20px; color: var(--text); }
.nasab .who small { display: block; margin-top: 1px; font-size: 15px; color: var(--muted); font-weight: 600; }
.nasab .bridge { width: 250px; text-align: center; color: var(--faint); font: 700 14px/1.3 Manrope, sans-serif; }
.nasab .bridge i { display: block; border-top: 2px dashed rgba(220, 143, 82, .45); margin: 6px 18px; }
.gen { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.gen .p {
  text-align: center; padding: 5px 3px 6px; border-radius: 12px;
  background: rgba(9, 11, 19, .62); border: 1px solid rgba(255, 255, 255, .07);
  font-size: 17px; font-weight: 800; line-height: 1.15;
}
.gen .p .ar-h { display: block; font-size: 20px; line-height: 1.7; font-weight: 400; color: #fbefd6; }
.gen .p em { display: block; margin-top: 1px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--gold); }
.gen .p.lim { border-color: rgba(220, 143, 82, .8); background: rgba(220, 143, 82, .12); }
.gen .p.father { border-color: rgba(159, 212, 154, .5); }
.nasab .down { text-align: center; color: var(--gold); font-size: 16px; line-height: 1; opacity: .75; }
.son {
  align-self: center; display: flex; align-items: baseline; gap: 14px;
  padding: 6px 22px 8px; border-radius: 999px;
  border: 1px solid rgba(220, 143, 82, .65); background: rgba(220, 143, 82, .14);
}
.son .ar-h { font-size: 32px; line-height: 1; color: var(--gold-2); }
.son b { font: 800 26px/1 "Playfair Display", serif; color: var(--text); }
.chips { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.chips span {
  padding: 7px 14px; border-radius: 999px;
  background: rgba(9, 11, 19, .55); border: 1px solid rgba(255, 255, 255, .08);
  font-size: 22px; font-weight: 700;
}
.chips .hot { border-color: rgba(224, 102, 60, .55); color: #ffd0c2; }
.chips .now { border-color: rgba(220, 143, 82, .75); color: var(--gold-2); background: rgba(220, 143, 82, .12); }
.card.idol.dream { padding-top: 16px; }
.card.idol.dream .term { font-size: 50px; line-height: 2.05; padding-top: 8px; }
.ayah.tall .ar { font-size: 34px; line-height: 2.7; }
.ayah.tall .an { display: block; width: max-content; margin: .2em auto 0; }
.ayah.tall .tr { font-size: 23px; line-height: 1.45; }
.ayah .an { display: inline-block; margin-inline: .35em .15em; vertical-align: middle; }
.son { white-space: nowrap; gap: 20px; }

/* ---------- карты «Меча Аллаха» ---------- */

.map { border-color: rgba(174, 186, 198, .22); }
.map .grat { stroke: rgba(174, 186, 198, .07); }
.map .land-sh { fill: rgba(0, 0, 0, .55); transform: translate(3px, 5px); }
.map .coast { stroke: rgba(220, 143, 82, .55); stroke-width: 1.2; }
.map .lake { fill: #0e1a24; stroke: rgba(143, 195, 255, .45); }
.map .river { stroke: #4f8fbf; stroke-width: 1.8; }
.map .sea-l { fill: rgba(150, 185, 215, .55); }
.map .emp.rum { fill: rgba(140, 120, 235, .30); }
.map .emp.per { fill: rgba(229, 80, 60, .28); }
.map .reg-l { font: 600 17px var(--head); letter-spacing: .3em; fill: rgba(244, 200, 151, .62); stroke: none; }
.map .reg-desert { font: italic 600 18px "Playfair Display", serif; fill: rgba(241, 236, 228, .42); stroke: none; }
.map .emp-l { font-size: 34px; }
.map .emp-s { font-size: 16px; }
.map .city text { font-size: 17px; }
.map .city.cap text { font-size: 19px; }
.map .mecca text { font: 700 24px var(--head); fill: #ffe3b8; letter-spacing: .04em; }
.map .mecca circle { fill: #f4c897; }
.map .mecca-glow { fill: #f4c897; opacity: .7; }
.map .bt-c { stroke: #08090b; stroke-width: 2.5; }
.map .bt-i { fill: none; stroke: #08090b; stroke-width: 2.4; stroke-linecap: round; }
.map .bt-n { font: 600 19px var(--head); letter-spacing: .02em; fill: #f7efe4; }
.map .bt-y { font: 600 15px Manrope, sans-serif; fill: rgba(241, 236, 228, .72); }
.map .bt-s { font: 600 14px Manrope, sans-serif; fill: rgba(241, 236, 228, .66); }
.map .g0 .bt-c { fill: #8d959e; }
.map .g0 .bt-n { fill: #c9cfd6; }
.map .g1 .bt-c { fill: #f4c897; }
.map .g2 .bt-c { fill: #9fd49a; }
.map .g3 .bt-c { fill: #ff9d6b; }
.map .g4 .bt-c { fill: #8fd0ff; }
.map .route { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map .r-iraq { stroke: #ff9d6b; stroke-width: 3.2; opacity: .9; }
.map .r-iraq.back { stroke-dasharray: 2 9; stroke-width: 3.4; }
.map .r-march { stroke: #8fd0ff; stroke-width: 3.6; stroke-dasharray: 12 9; }
.map .r-trade { stroke: #f4c897; stroke-width: 3.6; }
.map .route-l { font: italic 600 17px Manrope, sans-serif; fill: #bfe5ff; }
.map .end-glow { fill: #ff6b4a; opacity: 0; }
.map .end-glow.f.on { opacity: .8; animation: breathe 3s ease-in-out infinite; }
.map .end-l text { font: italic 600 16px Manrope, sans-serif; fill: #ffc2b0; }
.map .scale rect { fill: #f1ece4; }
.map .scale rect.alt { fill: #3a3d42; stroke: #f1ece4; stroke-width: 1; }
.map .scale text { font: 600 13px Manrope, sans-serif; fill: rgba(241, 236, 228, .75); }
.map .compass path { fill: #dc8f52; }
.map .compass path.south { fill: rgba(241, 236, 228, .35); }
.map .compass text { font: 700 15px var(--head); fill: #f1ece4; }
.map .note { font-size: 14px; }

/* ---------- оглавление ---------- */

.toc {
  position: fixed; inset: 0; z-index: 10; display: none;
  background: rgba(5, 7, 12, .88); backdrop-filter: blur(10px);
  padding: 4vh 5vw; overflow: auto;
}
.toc.open { display: block; }
.toc h4 { font: 800 14px/1 Manrope, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.toc ol { columns: 3; column-gap: 40px; margin: 0; padding-left: 28px; color: var(--faint); }
.toc li { font-size: 16px; line-height: 1.3; padding: 5px 0; break-inside: avoid; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover, .toc li.cur a { color: var(--gold); }
.mark {
  position: absolute; left: 40px; bottom: 18px; z-index: 4;
  margin: 0; pointer-events: none; user-select: none;
  font: 700 26px/1 Manrope, sans-serif; letter-spacing: .04em;
  color: rgba(243, 238, 228, .82);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .85), 0 0 10px rgba(0, 0, 0, .45);
}

.help {
  position: fixed; right: 18px; bottom: 14px; z-index: 6;
  font: 600 12px/1.4 Manrope, sans-serif; color: rgba(243, 238, 228, .35);
  pointer-events: none; transition: opacity 1s;
}
body.idle .help { opacity: 0; }

/* ---------- блоки «Меча Аллаха» ---------- */

.facts.big { gap: 16px; }
.facts.big .fact { grid-template-columns: 240px 1fr; padding: 20px 28px; font-size: 28px; line-height: 1.42; }
.facts.big .fact > :first-child { font-size: 18px; padding-top: 7px; }
.legend.big { gap: 12px; }
.legend.big .it { padding: 13px 20px; font-size: 23px; grid-template-columns: 22px 1fr; }
.legend.big .sw { width: 22px; height: 22px; }
.legend.big.tight { gap: 9px; }
.legend.big.tight .it { padding: 10px 20px; }
.legend.big .it h3 { font-size: 25px; margin-bottom: 3px; }
.stat.xl { padding: 40px 20px 34px; }
.stat.xl .v { font-size: 150px; }
.stat.xl .l { font-size: 25px; line-height: 1.35; margin-top: 12px; }

.tl2 .e4 { color: var(--ember); }
.tl2.four .rail { background: linear-gradient(90deg, rgba(185, 172, 255, .55), var(--gold) 45%, var(--green) 60%, var(--ember)); }

/* соотношение сил */
.forces { display: flex; flex-direction: column; gap: 14px; }
.force {
  display: grid; grid-template-columns: 250px 1fr 150px; gap: 26px; align-items: center;
  padding: 16px 26px; border-radius: 16px;
  background: var(--glass-2); border: 1px solid rgba(255, 255, 255, .05);
}
.force h3 { margin: 0; font-size: 32px; }
.force h3 small { display: block; margin-top: 4px; font: 600 17px/1.25 Manrope, sans-serif; color: var(--muted); letter-spacing: 0; }
.force .bars { display: flex; flex-direction: column; gap: 8px; }
.force .b { position: relative; height: 36px; width: 0; border-radius: 0 8px 8px 0; transition: width 1.6s var(--ease) .25s; }
.force.on .b { width: calc(var(--w) * .78%); }
.force .b span { position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%); white-space: nowrap; font: 600 24px/1 var(--head); color: var(--text); }
.force .b span small { font: 600 16px/1 Manrope, sans-serif; color: var(--muted); margin-left: 8px; }
.force .b.us { background: linear-gradient(90deg, #6e3a10, var(--gold)); box-shadow: 0 0 18px rgba(220, 143, 82, .35); }
.force .b.per { background: linear-gradient(90deg, #4a120c, var(--blood) 55%, var(--ember)); }
.force .b.rum { background: linear-gradient(90deg, #2a2156, #7d6cdd); }
.force .b.arab { background: linear-gradient(90deg, #2c3136, #75828f); }
.force .ratio { text-align: center; font: 700 46px/1 var(--head); color: var(--gold-2); }
.force .ratio small { display: block; margin-top: 6px; font: 700 13px/1.2 Manrope, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* варианты решения */
.card.opt { transition: opacity .6s ease, filter .6s ease, box-shadow .9s ease, border-color .9s ease, background .9s ease; }
.card.opt .no { font: 700 64px/.8 var(--head); color: rgba(220, 143, 82, .35); float: right; margin: 0 0 0 12px; }
.card.opt.pick.on {
  border-color: rgba(244, 200, 151, .85);
  background: linear-gradient(160deg, rgba(220, 143, 82, .26), rgba(19, 20, 24, .92));
  box-shadow: 0 0 0 2px rgba(244, 200, 151, .35), 0 0 60px rgba(220, 143, 82, .4);
}
.card.opt.pick.on .no { color: var(--gold-2); }

/* титулы */
.ttls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card.ttl { text-align: center; padding: 10px 26px 26px; }
.card.ttl .ar-h { display: block; font-size: 64px; line-height: 1.7; color: var(--gold-2); text-shadow: 0 0 26px rgba(244, 200, 151, .3); }
.card.ttl h3 { font-size: 31px; margin: 0 0 8px; }
.card.ttl p { margin: 0; font-size: 23px; line-height: 1.42; color: var(--muted); }
.card.ttl .src { font-size: 14px; margin-top: 10px; }
.card.ttl.top { border-color: rgba(244, 200, 151, .55); background: linear-gradient(160deg, rgba(220, 143, 82, .2), rgba(19, 20, 24, .9)); }

/* строка «наш герой» в таблице */
table.cmp.tight { font-size: 22px; border-spacing: 0 6px; }
table.cmp.tight td { padding: 9px 18px; }
table.cmp.tight th { padding-bottom: 0; }
table.cmp tr.me td { background: linear-gradient(180deg, rgba(96, 46, 16, .95), rgba(62, 27, 10, .95)); border-color: rgba(244, 200, 151, .4); color: #fff1dc; }
table.cmp tr.me td:first-child { box-shadow: inset 5px 0 0 var(--gold); color: #ffe2b8; }
table.cmp tr.pal td:first-child { box-shadow: inset 4px 0 0 rgba(174, 186, 198, .6); }
table.cmp td .ar-h { font-size: 26px; line-height: 1.2; color: var(--gold-2); }

/* родословное древо */
.tree { display: block; width: 100%; height: auto; overflow: visible; }
.tree .nd rect { fill: rgba(14, 15, 19, .9); stroke: rgba(220, 143, 82, .5); stroke-width: 1.6; }
.tree .nd text { fill: var(--text); font: 700 22px Manrope, sans-serif; text-anchor: middle; }
.tree .nd .a { font: 400 27px Amiri, serif; fill: #fbefd6; }
.tree .nd .sub { font: 600 15px Manrope, sans-serif; fill: var(--muted); }
.tree .nd.clan rect { fill: rgba(220, 143, 82, .08); stroke-dasharray: 5 5; }
.tree .nd.clan text { fill: var(--gold); font: 800 16px Manrope, sans-serif; letter-spacing: .14em; }
.tree .nd.leaf rect { fill: rgba(22, 23, 28, .95); stroke: rgba(244, 200, 151, .55); }
.tree .nd.me rect { fill: rgba(96, 46, 16, .97); stroke: var(--gold-2); stroke-width: 3; filter: drop-shadow(0 0 16px rgba(244, 200, 151, .55)); }
.tree .ln { fill: none; stroke: rgba(220, 143, 82, .6); stroke-width: 2.2; }
.tree .ln.d { stroke-dasharray: 2 8; stroke-linecap: round; stroke-width: 3.2; }
.tree .gen-l { font: italic 600 16px Manrope, sans-serif; fill: var(--muted); }

.gen.lg { gap: 12px; }
.gen.lg .p { font-size: 26px; padding: 22px 4px 24px; }
.gen.lg .p .ar-h { font-size: 44px; line-height: 1.6; }
.gen.lg .p em { font-size: 16px; margin-top: 4px; }
.nasab.lg .son { padding: 10px 40px; }
.nasab.lg .son .ar-h { font-size: 60px; }
.nasab.lg .son b { font-size: 42px; }
.nasab.lg .down { font-size: 30px; margin: 10px 0; }

/* девять мечей */
.swords { display: flex; justify-content: center; align-items: flex-end; gap: 18px; }
.swords svg { width: 92px; height: 120px; color: rgba(174, 186, 198, .75); }
.swords .keep { color: var(--gold-2); filter: drop-shadow(0 0 16px rgba(244, 200, 151, .7)); width: 120px; height: 150px; }

/* Мута: знамя едет по списку, мечи ломаются по очереди */
.rail { position: relative; min-height: 520px; padding-left: 132px; }
.rail .flag {
  position: absolute; left: 8px; top: 8px; width: 92px; height: 118px;
  transition: transform 1.05s cubic-bezier(.22, .8, .2, 1);
}
.rail .flag i {
  position: absolute; left: 8px; top: 0; bottom: 0; width: 4px; border-radius: 2px;
  background: linear-gradient(#efe6d4, #8a7356);
}
.rail .flag b {
  position: absolute; left: 12px; top: 6px; width: 70px; height: 46px; border-radius: 0 8px 8px 0;
  background: linear-gradient(160deg, #f4e7cf, #c4a574 70%, #8d6a3e);
  transform-origin: left center;
  animation: cloth 2.8s ease-in-out infinite;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .28);
}
@keyframes cloth { 50% { transform: skewX(-7deg) scaleX(.94); } }
.slide[data-k="1"] .rail .flag { transform: translateY(168px); }
.slide[data-k="2"] .rail .flag,
.slide[data-k="3"] .rail .flag { transform: translateY(336px); }
.rail .slot {
  height: 150px; margin-bottom: 18px; display: flex; flex-direction: column; justify-content: center;
  padding: 0 28px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .03); opacity: .42; transition: opacity .55s ease, border-color .55s ease;
}
.rail .slot b { font: 600 40px/1.1 var(--head); color: var(--text); }
.rail .slot span { margin-top: 6px; font-size: 22px; color: var(--muted); }
.slide[data-k="0"] .rail .slot:nth-child(1),
.slide[data-k="1"] .rail .slot:nth-child(2),
.slide[data-k="2"] .rail .slot:nth-child(3),
.slide[data-k="3"] .rail .slot:nth-child(3) { opacity: 1; border-color: rgba(244, 200, 151, .45); }
.nine { display: flex; align-items: flex-end; justify-content: center; gap: 12px; min-height: 230px; }
.nine svg { width: 74px; height: 168px; color: rgba(186, 196, 206, .88); overflow: visible; }
.nine .steel { transform-origin: 50% 6%; transition: transform .5s cubic-bezier(.2, .8, .24, 1), opacity .5s ease; }
.nine.on .brk:nth-child(1) .steel { transition-delay: .02s; }
.nine.on .brk:nth-child(2) .steel { transition-delay: .12s; }
.nine.on .brk:nth-child(3) .steel { transition-delay: .22s; }
.nine.on .brk:nth-child(4) .steel { transition-delay: .32s; }
.nine.on .brk:nth-child(5) .steel { transition-delay: .42s; }
.nine.on .brk:nth-child(6) .steel { transition-delay: .52s; }
.nine.on .brk:nth-child(7) .steel { transition-delay: .62s; }
.nine.on .brk:nth-child(8) .steel { transition-delay: .72s; }
.nine.on .brk:nth-child(9) .steel { transition-delay: .82s; }
.nine.on .brk .steel { transform: rotate(26deg) translate(4px, 16px); opacity: .28; }
.nine .keep { width: 102px; height: 210px; color: rgba(196, 176, 150, .55); transition: color .6s ease, filter .6s ease, transform .6s ease; }
.slide[data-k="2"] .nine .keep,
.slide[data-k="3"] .nine .keep { color: var(--gold-2); filter: drop-shadow(0 0 18px rgba(244, 200, 151, .75)); transform: translateY(-8px); }
.sch.pencil .rum { fill: rgba(62, 70, 84, .1); stroke: #3d4654; stroke-width: 1.6; }
.sch.pencil .lbl.rum-t { fill: #2c3442; }
.sch.pencil .arw.rum { stroke: #3d4654; }

/* семья */
.kin { display: grid; gap: 10px; }
.kin .k {
  display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: baseline;
  padding: 11px 20px; border-radius: 14px;
  background: var(--glass-2); border: 1px solid rgba(255, 255, 255, .05);
  font-size: 21px; line-height: 1.38;
}
.kin .k b { font-size: 23px; }
.kin .k .ar-h { font-size: 24px; color: var(--gold); margin-left: 8px; }
.kin .k span { color: var(--muted); }
.kin .k.isl { border-color: rgba(159, 212, 154, .35); }
.kin .k.isl b { color: #d3f2c4; }
.kin .k.foe { border-color: rgba(224, 102, 60, .35); }
.kin .k.foe b { color: #ffc4b0; }

/* схемы боя */
.sch { display: block; width: 100%; height: auto; border-radius: var(--r); background: radial-gradient(ellipse at 50% 40%, #232019, #121110); border: 1px solid rgba(220, 143, 82, .18); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.sch text, .sk svg text { font-family: Manrope, sans-serif; paint-order: stroke; stroke: rgba(10, 9, 8, .9); stroke-width: 5px; stroke-linejoin: round; }
.sch .grid { stroke: rgba(241, 236, 228, .045); stroke-width: 1; }
:is(.sch, .sk) .u { fill: rgba(220, 143, 82, .3); stroke: #f4c897; stroke-width: 2.6; }
:is(.sch, .sk) .per { fill: rgba(229, 80, 60, .28); stroke: #ff8a70; stroke-width: 2.6; }
:is(.sch, .sk) .rum { fill: rgba(140, 120, 235, .3); stroke: #c4b8ff; stroke-width: 2.6; }
:is(.sch, .sk) .ghost { fill: rgba(220, 143, 82, .06); stroke: #f4c897; stroke-width: 2; stroke-dasharray: 7 6; }
:is(.sch, .sk) .sym { fill: none; stroke-width: 2.2; stroke-linecap: round; }
:is(.sch, .sk) .u .sym, :is(.sch, .sk) .sym.u { stroke: #f4c897; }
:is(.sch, .sk) .lbl { font-weight: 800; font-size: 22px; fill: #f1ece4; }
:is(.sch, .sk) .lbl.sm { font-weight: 600; font-size: 18px; fill: rgba(241, 236, 228, .75); }
:is(.sch, .sk) .lbl.u-t { fill: #ffd9a8; }
:is(.sch, .sk) .lbl.per-t { fill: #ffb19c; }
:is(.sch, .sk) .lbl.rum-t { fill: #dcd3ff; }
:is(.sch, .sk) .lbl.cap { font: 700 15px Manrope, sans-serif; letter-spacing: .2em; fill: rgba(241, 236, 228, .5); }
:is(.sch, .sk) .arl { font: 400 34px Amiri, serif; fill: #fbefd6; stroke-width: 6px; }
:is(.sch, .sk) .arw { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
:is(.sch, .sk) .arw.u { stroke: #f4c897; }
:is(.sch, .sk) .arw.per { stroke: #ff8a70; }
:is(.sch, .sk) .arw.rum { stroke: #c4b8ff; }
:is(.sch, .sk) .arw.dash { stroke-dasharray: 12 10; stroke-width: 4.5; }
:is(.sch, .sk) .hill { fill: none; stroke: rgba(196, 170, 120, .7); stroke-width: 3; }
:is(.sch, .sk) .hill-h { fill: none; stroke: rgba(196, 170, 120, .45); stroke-width: 2; }
:is(.sch, .sk) .ring { fill: none; stroke: #f4c897; stroke-width: 3; stroke-dasharray: 3 9; stroke-linecap: round; }
:is(.sch, .sk) .glow { fill: none; stroke: #ffd27a; stroke-width: 10; opacity: .5; filter: blur(4px); }
.sch .mv { transition: transform 1.6s var(--ease); }
.sch .mv.on { transform: translate(var(--dx, 0px), var(--dy, 0px)); }
:is(.sch, .sk) .zone { fill: rgba(255, 210, 122, .1); stroke: #ffd27a; stroke-width: 2; stroke-dasharray: 6 6; }
.sch .out { transition: opacity .8s ease; }
.sch .out.on { opacity: 0; }
:is(.sch, .sk) .pole { stroke: #e9d2a8; stroke-width: 3; }
:is(.sch, .sk) .flag { fill: url(#g-gold); }
:is(.sch, .sk) .river { fill: none; stroke: #6fa8d6; stroke-width: 6; stroke-linecap: round; }
:is(.sch, .sk) .tips { fill: none; stroke: #ffb19c; stroke-width: 2.2; stroke-linejoin: round; }
:is(.sch, .sk) .edge { stroke: #ffd27a; stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(255, 210, 122, .8)); }
:is(.sch, .sk) .cap-l { font: 800 24px Manrope, sans-serif; letter-spacing: .16em; fill: #ffe2b8; }
:is(.sch, .sk) .say { font: 700 24px Manrope, sans-serif; fill: #f6efe4; }

/* карандашный эскиз: бумага, графит, без тёмного ореола у подписей */
.sch.pencil {
  background: #f3eadb;
  border: 1px solid rgba(90, 70, 46, .28);
  box-shadow: 0 16px 36px rgba(40, 28, 16, .28);
}
.sch.pencil text {
  stroke: none;
  paint-order: fill;
  fill: #3a3228;
}
.sch.pencil .u { fill: rgba(122, 84, 42, .13); stroke: #6d4a2c; stroke-width: 1.6; }
.sch.pencil .per { fill: rgba(122, 58, 48, .1); stroke: #7c4038; stroke-width: 1.6; }
.sch.pencil .ghost { fill: rgba(109, 74, 44, .04); stroke: #8a7356; stroke-width: 1.4; stroke-dasharray: 5 5; }
.sch.pencil .sym { stroke: #7c4038; stroke-width: 1.5; }
.sch.pencil .lbl { fill: #3a3228; font-size: 20px; font-weight: 700; }
.sch.pencil .lbl.sm { fill: #5c5348; font-size: 16px; font-weight: 600; }
.sch.pencil .lbl.u-t { fill: #5c3a1c; }
.sch.pencil .lbl.per-t { fill: #6e342c; }
.sch.pencil .lbl.cap { fill: rgba(58, 50, 40, .62); letter-spacing: .14em; }
.sch.pencil .cap-l { fill: #3a3228; letter-spacing: .14em; font-size: 18px; }
.sch.pencil .say { fill: #4a3428; font-size: 20px; stroke: none; }
.sch.pencil .arw { stroke-width: 2.4; }
.sch.pencil .arw.dash { stroke-width: 2; stroke-dasharray: 8 7; }
.sch.pencil .arw.u { stroke: #6d4a2c; }
.sch.pencil .arw.per { stroke: #7c4038; }
.sch.pencil .zone { fill: rgba(120, 96, 60, .05); stroke: #9a8668; stroke-width: 1.3; stroke-dasharray: 5 5; }
.sch.pencil .ring { stroke: #6d4a2c; stroke-width: 1.6; }
.sch.pencil .paper-label { fill: #f6f0e4; stroke: none; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.duo h3 { margin: 0 0 8px; font-size: 26px; }
.duo h3 small { font: 600 18px Manrope, sans-serif; color: var(--muted); margin-left: 10px; letter-spacing: 0; }

/* значки на схемах */
.syms { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.syms .sy {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 16px 14px 18px; border-radius: 16px;
  background: var(--glass-2); border: 1px solid rgba(255, 255, 255, .06);
  font-size: 20px; line-height: 1.32;
}
.syms .sy svg { width: 150px; height: 96px; overflow: visible; }
.syms .sy b { font-size: 22px; }
.syms .sy span { color: var(--muted); font-size: 18px; }

.arms .card { display: flex; flex-direction: column; padding: 18px 24px 22px; }
.arms svg { width: 150px; height: 96px; margin: 0 0 10px; overflow: visible; }
.arms h3 { margin: 0 0 8px; font-size: 29px; }
.arms h3 .ar-h { font-size: 30px; color: var(--gold); margin-left: 10px; font-weight: 400; }
.arms p { margin: 0; font-size: 21px; line-height: 1.42; color: var(--muted); }

.arms p { font-size: 23.5px; }
.arms h3 { font-size: 32px; }
.syms.big { gap: 22px; }
.syms.big .sy { padding: 22px 16px 24px; }
.syms.big .sy svg { width: 180px; height: 115px; }
.syms.big .sy b { font-size: 27px; }
.syms.big .sy span { font-size: 21px; }
.qa.big { gap: 22px 28px; }
.qa.big .q { font-size: 27px; padding: 22px 28px; }
.qa.big .q .n { font-size: 30px; }
.qa.big .q .a { font-size: 25px; }
.lamps.big { gap: 18px; }
.lamps.big .lamp { padding: 22px 30px; }
.lamps.big .lamp h3 { font-size: 34px; }
.lamps.big .lamp p { font-size: 25px; }
.vtl.big { gap: 20px; }
.vtl.big .ev { font-size: 27px; }
.vtl.big .ev::before { top: 12px; }

/* сура «аль-Адийат» построчно */
.adiyat { display: flex; flex-direction: column; gap: 14px; }
.adiyat .av {
  display: grid; grid-template-columns: 480px 1fr; gap: 30px; align-items: center;
  padding: 10px 28px; border-radius: 16px;
  background: var(--glass-2); border: 1px solid rgba(255, 255, 255, .05);
}
.adiyat .av .ayah .ar { font-size: 47px; line-height: 1.8; margin: 0; text-align: right; }
.adiyat .av .tr2 { font-size: 26px; line-height: 1.38; }
.adiyat .av .tr2 i { font-style: normal; color: var(--gold-2); font-weight: 700; }
.adiyat .av .tr2 span { display: block; color: var(--muted); font-size: 22px; margin-top: 2px; }

/* анатомия меча */
.sword-a .part { font-weight: 800; font-size: 19px; fill: #f1ece4; }
.sword-a .part-ar { font: 400 30px Amiri, serif; fill: var(--gold-2); }
.sword-a .lead-l { stroke: rgba(244, 200, 151, .55); stroke-width: 1.5; fill: none; }

/* иконки оружия */
.card .ico.big { width: 76px; height: 76px; }
.wpn { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: start; }
.wpn svg { width: 100px; height: 100px; color: var(--gold); }
.wpn h3 { margin: 0 0 6px; font-size: 31px; }
.wpn h3 .ar-h { font-size: 34px; color: var(--gold); margin-left: 10px; font-weight: 400; }
.wpn p { margin: 0; font-size: 23px; line-height: 1.4; color: var(--muted); }

/* холодное начало: клич из эпилога Акрама */
.cold { justify-content: center; align-items: center; text-align: center; padding: 70px 220px 90px; }
.cold .kicker { margin-bottom: 44px; text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.cold .line { max-width: 1420px; margin: 0 0 26px; font: italic 500 38px/1.5 "Playfair Display", serif; color: rgba(246, 239, 228, .95); text-shadow: 0 2px 18px rgba(0, 0, 0, .9); }
.cold .cry { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; font: 700 76px/1.15 var(--head); text-transform: uppercase; letter-spacing: .04em; color: #fff3df; text-shadow: 0 0 50px rgba(229, 80, 60, .65), 0 4px 22px rgba(0, 0, 0, .85); }
.cold .cry span { display: block; margin-top: 18px; font-size: 118px; line-height: 1.08; color: var(--gold-2); }

/* карта курса: жизнь и эпохи */
.life { display: flex; align-items: center; gap: 22px; font-size: 24px; color: var(--muted); }
.life i { flex: 1; height: 4px; border-radius: 4px; background: linear-gradient(90deg, rgba(185, 172, 255, .7), var(--gold) 45%, var(--green) 60%, var(--ember)); box-shadow: 0 0 16px rgba(220, 143, 82, .4); }
.life b { font: 700 38px/1 var(--head); color: var(--gold-2); margin-right: 12px; }
.eras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.era-c { position: relative; overflow: hidden; padding: 20px 26px 26px; border-radius: 18px; background: var(--glass-2); border: 1px solid rgba(255, 255, 255, .06); border-top: 6px solid currentColor; }
.era-c .rn { position: absolute; right: 16px; top: -10px; font: 700 130px/1 var(--head); color: transparent; -webkit-text-stroke: 2px currentColor; opacity: .4; }
.era-c small { display: block; font: 800 16px/1.3 Manrope, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.era-c h3 { position: relative; margin: 6px 0 0; font-size: 44px; color: var(--text); }
.era-c p { position: relative; margin: 14px 0 0; font: italic 600 27px/1.35 "Playfair Display", serif; color: rgba(246, 239, 228, .92); }
.era-c.e1 { color: var(--violet); }
.era-c.e2 { color: var(--gold); }
.era-c.e3 { color: var(--green); }
.era-c.e4 { color: var(--ember); }

/* портрет словами */
.portrait { display: flex; flex-direction: column; justify-content: center; padding: 40px 48px; border-color: rgba(244, 200, 151, .45); }
.portrait::before { content: "«"; font: 700 180px/.6 "Playfair Display", serif; color: rgba(220, 143, 82, .35); margin-bottom: 4px; }
.portrait p { margin: 0; font: italic 500 36px/1.5 "Playfair Display", serif; color: #f6efe4; }
.portrait .tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* рядом с великими */
.greats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.greats .gc { padding: 20px 26px 22px; border-radius: 18px; background: var(--glass-2); border: 1px solid rgba(255, 255, 255, .06); }
.greats .gc h3 { margin: 0 0 4px; font-size: 38px; color: var(--gold-2); }
.greats .gc > p { margin: 0 0 10px; font-size: 22px; line-height: 1.38; color: var(--muted); }
.greats .nm { padding: 10px 0 2px; border-top: 1px dashed rgba(220, 143, 82, .3); font-size: 21px; line-height: 1.35; color: var(--muted); }
.greats .nm b { display: block; font: 600 32px/1.15 var(--head); color: var(--text); }

/* письмо */
.letter { position: relative; padding: 26px 50px 34px; font: 500 28px/1.5 "Playfair Display", serif; }
.letter .basm { display: block; text-align: center; font-size: 40px; line-height: 1.6; }
.letter .from { margin: 2px 0 16px; text-align: center; font: 800 17px/1.3 Manrope, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #8a4b12; }
.letter p { margin: 0 0 12px; }
.letter b { color: #8a2a12; }
.letter .key-ar { display: block; text-align: center; font-size: 40px; line-height: 1.7; color: #7a2410; }
.letter .src { color: #8a4b12; }
.letter .seal {
  position: absolute; right: 36px; bottom: -30px; width: 108px; height: 108px; border-radius: 50%;
  display: grid; place-items: center; transform: rotate(-12deg);
  background: radial-gradient(circle at 35% 30%, #d0533a, #7a1a10 72%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45), inset 0 0 0 6px rgba(0, 0, 0, .16);
  font: 400 34px/1 Amiri, serif; color: #ffd9b8;
}
.letter.long { padding: 18px 46px 28px; font-size: 25px; line-height: 1.45; }
.letter.long .basm { font-size: 36px; line-height: 1.5; }
.letter.long p { margin: 0 0 10px; }
.letter.long .key-ar { font-size: 33px; line-height: 1.6; margin-top: 4px; }
.letter .salam { margin: 0 0 14px; text-align: center; font-weight: 700; font-size: 28px; color: #8a2a12; }
.letter .salam .ar-h { display: block; font-size: 40px; line-height: 1.55; color: #3a2410; }
.letter .pn {
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; vertical-align: 3px;
  border-radius: 50%; background: #8a4b12; color: #fff3df; font: 800 16px/1 Manrope, sans-serif;
}
.nores { margin: auto 0 0; text-align: center; font: 700 40px/1.2 "Playfair Display", serif; color: var(--gold-2); text-shadow: 0 0 34px rgba(229, 80, 60, .55); }
.refrain { text-align: center; padding: 8px 30px 16px; border-color: rgba(244, 200, 151, .45); }
.refrain .ar-h { display: block; font-size: 48px; line-height: 1.7; color: var(--gold-2); text-shadow: 0 0 26px rgba(244, 200, 151, .3); }
.quote.echo { padding: 14px 26px 16px; }
.quote.echo .src { margin: 0 0 4px; font-size: 15px; }
.quote.echo p { font: italic 500 26px/1.42 "Playfair Display", serif; color: #f6efe4; }

/* диалог */
.dlg { display: flex; flex-direction: column; gap: 10px; }
.dlg .ln { max-width: 90%; padding: 12px 22px 14px; border-radius: 18px; font-size: 24px; line-height: 1.38; background: var(--glass-2); border: 1px solid rgba(255, 255, 255, .06); }
.dlg .ln b { font: 800 15px/1 Manrope, sans-serif; letter-spacing: .2em; text-transform: uppercase; margin-right: 12px; }
.dlg .ln.rum { align-self: flex-start; border-color: rgba(196, 184, 255, .35); background: linear-gradient(160deg, rgba(64, 52, 128, .55), rgba(19, 20, 24, .92)); border-top-left-radius: 4px; }
.dlg .ln.rum b { color: var(--violet); }
.dlg .ln.isl { align-self: flex-end; border-color: rgba(244, 200, 151, .45); background: linear-gradient(160deg, rgba(220, 143, 82, .24), rgba(19, 20, 24, .92)); border-top-right-radius: 4px; }
.dlg .ln.isl b { color: var(--gold-2); }
.dlg .ln.nar { font-style: italic; color: var(--muted); }
.dlg .ln.hit { font-size: 31px; font-weight: 700; color: #fff; box-shadow: 0 0 40px rgba(185, 172, 255, .3); }

/* общая карта и загадка на схеме */
.map .thrust { fill: none; stroke: rgba(244, 200, 151, .8); stroke-width: 16; stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(244, 200, 151, .45)); }
.map .thrust-h { fill: #f4c897; }
.map .reg-huge { font: 600 52px var(--head); letter-spacing: .42em; fill: rgba(255, 227, 184, .92); }
.sch .q { font: 700 230px/1 var(--head); fill: rgba(244, 200, 151, .9); stroke: none; filter: drop-shadow(0 0 30px rgba(244, 200, 151, .55)); }

@media (prefers-reduced-motion: reduce) {
  .bg { animation: none; }
  .photo img, .slide.on .photo img { transform: none; transition: none; }
  .rail .flag, .rail .flag b, .nine .steel, .nine .keep, .sch .mv { transition: none; animation: none; }
}

@media print {
  html, body { overflow: visible; height: auto; }
}
