/* «Кучевые» — атлас неба. Светлое дневное небо, бумага атласа, синие чернила. */

@font-face { font-family: "Playfair"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/playfair-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/playfair-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/playfair-cyrillic-400-italic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/playfair-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/playfair-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/playfair-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/golos-cyrillic-400.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/golos-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/golos-cyrillic-500.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/golos-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/golos-cyrillic-600.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/golos-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JB Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/jbmono-cyrillic-400.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JB Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/jbmono-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #17263a; --ink2: #4b5c72; --ink3: #7a8a9e;
  --sin: #24569a; --sin2: #3a74c2; --zol: #e2a23b; --kor: #e0764d;
  --bum: #fbf9f4; --bum2: #f3efe5; --neb: #eef4fa; --neb2: #dcebf8;
  --line: rgba(23, 38, 58, .13); --ten: 0 30px 60px -28px rgba(20, 40, 70, .45), 0 8px 18px -10px rgba(20, 40, 70, .22);
  --g: clamp(16px, 4vw, 44px); --r: 18px;
  --serif: "Playfair", "Times New Roman", serif; --sans: "Golos", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JB Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; background: var(--neb); color: var(--ink); font: 400 17px/1.62 var(--sans); overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sin); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--kor); }
:focus-visible { outline: 3px solid var(--zol); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .4em; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.6vw, 56px); }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------- кнопки ---------- */
.kn { display: inline-flex; align-items: center; gap: .5em; padding: 14px 24px; border-radius: 999px; background: var(--ink);
  color: #fff; font: 500 16px/1 var(--sans); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .3s, box-shadow .3s; box-shadow: 0 10px 24px -12px rgba(10, 25, 50, .6); }
.kn:hover { color: #fff; background: var(--sin); transform: translateY(-2px); }
.kn-2 { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .7); box-shadow: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.kn-2:hover { background: rgba(255, 255, 255, .3); }
.dalee { margin: 22px 0 0; font: 500 15px/1.4 var(--sans); }
.dalee a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.dalee a::after { content: "  →"; }

/* ---------- шапка и меню ---------- */
.shapka { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 18px;
  padding: 12px var(--g); padding-top: max(12px, env(safe-area-inset-top)); transition: background .4s, box-shadow .4s, color .4s; }
.ushli .shapka { background: rgba(246, 249, 252, .78); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.znak { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; min-width: 0; }
.znak:hover { color: var(--ink); }
.znak-i { flex: none; }
.znak-s { fill: var(--zol); }
.znak-t { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.znak-t b { font: italic 400 25px/1 var(--serif); }
.znak-t small { font: 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); white-space: nowrap; }
.glavnaya:not(.x) .znak, .glavnaya .bystro a, .glavnaya .menu summary { transition: color .4s; }
html:not(.ushli) .glavnaya .znak, html:not(.ushli) .glavnaya .bystro a { color: #fff; }
html:not(.ushli) .glavnaya .znak-t small { color: rgba(255, 255, 255, .85); }
.bystro { display: flex; gap: 4px; }
.bystro a { font: 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); text-decoration: none;
  padding: 10px 12px; border-radius: 999px; transition: background .25s; }
.bystro a:hover, .bystro a[aria-current] { background: rgba(255, 255, 255, .5); color: var(--ink); }
html:not(.ushli) .glavnaya .bystro a:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.menu { position: relative; }
.menu summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; position: relative; z-index: 2;
  padding: 10px 16px 10px 14px; border-radius: 999px; background: var(--ink); color: #fff; font: 500 15px/1 var(--sans);
  box-shadow: 0 10px 22px -12px rgba(10, 25, 50, .7); user-select: none; }
.menu summary::-webkit-details-marker { display: none; }
.m-ikon { width: 18px; height: 12px; position: relative; display: block; }
.m-ikon i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s, top .35s; }
.m-ikon i:first-child { top: 1px; } .m-ikon i:last-child { top: 9px; }
.menu[open] .m-ikon i:first-child { top: 5px; transform: rotate(45deg); }
.menu[open] .m-ikon i:last-child { top: 5px; transform: rotate(-45deg); }
.menu-p { position: fixed; inset: 0; z-index: 1; overflow-y: auto; padding: 100px var(--g) 40px;
  background: radial-gradient(120% 70% at 85% 0%, #fff6e2 0%, rgba(255, 246, 226, 0) 55%), linear-gradient(180deg, #a9cdef 0%, #dcebf8 45%, var(--bum) 100%);
  animation: menu-in .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes menu-in { from { opacity: 0; clip-path: circle(0 at calc(100% - 60px) 34px); } to { opacity: 1; clip-path: circle(150% at calc(100% - 60px) 34px); } }
.menu-p ol { list-style: none; margin: 0 auto; padding: 0; max-width: 1100px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.menu-p li a { display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: padding .3s; }
.menu-p li a:hover { padding-left: 10px; color: var(--sin); }
.menu-p li a[aria-current] b { font-style: italic; color: var(--sin); }
.m-n { font: 12px var(--mono); color: var(--ink3); }
.menu-p b { font: 400 clamp(30px, 4vw, 46px)/1.05 var(--serif); }
.menu-p small { grid-column: 2; font: 13px/1.4 var(--mono); color: var(--ink2); letter-spacing: .04em; margin-top: 6px; }
.menu-niz { max-width: 1100px; margin: 32px auto 0; display: flex; gap: 22px; flex-wrap: wrap; font: 14px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.menu-otkr body { overflow: hidden; }
.menu-otkr .vysotomer { opacity: 0; }

/* ---------- главная: небо ---------- */
.nebo { position: fixed; inset: 0; z-index: -1; height: 100lvh; background: #9cc6ee url(nebo-0-w.jpg) center 40% / cover no-repeat; }
.nebo::after { content: ""; position: absolute; inset: 0; background: url(nebo-1-w.jpg) center / cover no-repeat; opacity: var(--alt, 0); }
.nebo canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; z-index: 1; }
.gl-on .nebo canvas { opacity: 1; }
.nebo::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(14, 40, 80, .38) 0%, rgba(14, 40, 80, 0) 55%); opacity: calc(1 - var(--alt, 0) * 3); }
@media (max-width: 700px) {
  .nebo { background-image: url(nebo-0-m.jpg); background-position: center; }
  .nebo::after { background-image: url(nebo-1-m.jpg); }
  .nebo::before { background: linear-gradient(180deg, rgba(14, 40, 80, .3) 0%, rgba(14, 40, 80, .05) 50%, rgba(14, 40, 80, .35) 100%); }
}
.glavnaya { background: transparent; }
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 110px var(--g) 90px; position: relative; color: #fff; }
.hero-in { max-width: 1240px; width: 100%; margin: 0 auto; }
.hero-k { color: rgba(255, 255, 255, .88); margin-bottom: 18px; }
.hero-h { font: italic 400 clamp(76px, 15vw, 220px)/.86 var(--serif); letter-spacing: -.035em; margin: 0 0 .16em -.04em;
  text-shadow: 0 6px 40px rgba(10, 40, 90, .35); }
.hero-t { font: italic 400 clamp(22px, 2.6vw, 34px)/1.2 var(--serif); margin: 0 0 30px; color: #fff8ea; text-shadow: 0 2px 18px rgba(10, 40, 90, .4); }
.hero-p { max-width: 540px; font-size: 17px; line-height: 1.6; padding: 20px 24px 6px; border-radius: 22px;
  background: rgba(16, 44, 86, .28); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .22); }
.hero-b { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.hero-b .kn:first-child { background: #fff; color: var(--ink); }
.hero-b .kn:first-child:hover { background: #fff6e0; color: var(--ink); }
.hero-vniz { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .8); border-radius: 14px; }
.hero-vniz i { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: kolesiko 1.8s infinite; }
@keyframes kolesiko { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* высотомер */
.vysotomer { position: fixed; right: max(18px, env(safe-area-inset-right)); top: 50%; z-index: 40; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; transition: opacity .4s; }
.vm-sh { position: relative; width: 14px; height: 38vh; overflow: hidden;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .75) 0 1px, transparent 1px 12px) right / 8px 100% no-repeat,
  linear-gradient(rgba(255, 255, 255, .7), rgba(255, 255, 255, .7)) right / 1px 100% no-repeat; }
.vm-m { position: absolute; inset: 0; transition: none; }
.vm-m::after { content: ""; position: absolute; bottom: -1px; right: -1px; width: 14px; height: 3px; border-radius: 2px; background: var(--zol); box-shadow: 0 0 12px var(--zol); }
.vm-c { display: flex; flex-direction: column; align-items: flex-end; padding: 8px 12px; border-radius: 12px;
  background: rgba(16, 36, 66, .42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; min-width: 120px; }
.vm-v { font: 500 18px/1.1 var(--mono); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.vm-n { font: 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
@media (max-width: 900px) {
  .vysotomer { top: auto; transform: none; bottom: max(14px, env(safe-area-inset-bottom)); right: auto; left: 14px; flex-direction: row; align-items: center; }
  .vm-sh { display: none; }
  .vm-c { flex-direction: row; align-items: baseline; gap: 8px; min-width: 0; padding: 7px 12px; border-radius: 999px; }
  .vm-v { font-size: 14px; }
  html:not(.ushli) .vysotomer { opacity: 0; }
}

/* небо в движении */
.kino, .bloknot { position: relative; max-width: 1240px; margin: 4vh auto 22vh; padding: clamp(22px, 4vw, 56px); border-radius: 32px;
  background: rgba(251, 249, 244, .9); box-shadow: var(--ten); width: calc(100% - var(--g) * 2); }
@media (hover: hover) and (min-width: 900px) { .kino, .bloknot { background: rgba(251, 249, 244, .8); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); } }
.kino-h { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; align-items: end; margin-bottom: 28px; }
.kino-h .mono { grid-column: 1 / -1; margin-bottom: 8px; }
.kino-h h2 { margin: 0; }
.kino-h p:last-child { margin: 0; color: var(--ink2); }
.kino-lead { position: relative; display: block; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; box-shadow: var(--ten);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d; }
.kino-lead img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.kino-lead:hover { color: #fff; }
.kino-lead:hover img { transform: scale(1.04); }
.kino-lead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 18, 34, .78) 0%, rgba(8, 18, 34, 0) 55%); }
.kino-pl { position: absolute; left: 50%; top: 45%; z-index: 2; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), background .3s; }
.kino-pl::before { content: ""; position: absolute; left: 38px; top: 30px; border-left: 26px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.kino-lead:hover .kino-pl { transform: scale(1.1); background: rgba(255, 255, 255, .35); }
.kino-c { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(16px, 3vw, 32px); display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: end; }
.kino-c b { font: italic 400 clamp(26px, 3.4vw, 44px)/1.05 var(--serif); }
.kino-c small { grid-row: 2; font-size: 15px; opacity: .9; max-width: 640px; }
.kino-c .mono { grid-row: 1 / 3; grid-column: 2; color: #fff; font-size: 14px; }
.kk-kino { margin-top: 26px; }

/* атлас по ярусам */
.atlas { padding: 6vh 0 0; }
.atlas-h { max-width: 760px; margin: 0 auto 18vh; padding: 0 var(--g); text-align: center; color: #fff; text-shadow: 0 2px 22px rgba(10, 40, 90, .45); }
.atlas-h .mono { color: rgba(255, 255, 255, .9); }
.atlas-h h2 { font-size: clamp(44px, 7vw, 96px); font-style: italic; }
.atlas-h p:last-child { font-size: 19px; }
.list { position: relative; width: min(1000px, calc(100% - var(--g) * 2)); margin: 0 auto 26vh; padding: clamp(22px, 4vw, 52px);
  background: var(--bum); border-radius: 6px; box-shadow: var(--ten), inset 0 0 0 1px rgba(23, 38, 58, .06);
  background-image: linear-gradient(var(--bum), var(--bum)), linear-gradient(90deg, var(--line), var(--line));
  outline: 1px solid rgba(23, 38, 58, .18); outline-offset: -12px; }
@media (min-width: 1100px) {
  .list-l { margin-left: max(6vw, calc(50% - 640px)); transform: rotate(-.4deg); }
  .list-r { margin-right: max(8vw, calc(50% - 620px)); transform: rotate(.35deg); }
}
.list-n { position: absolute; right: clamp(18px, 3vw, 40px); top: clamp(4px, 1vw, 14px); font: italic 400 clamp(80px, 12vw, 150px)/1 var(--serif);
  color: var(--zol); opacity: .28; pointer-events: none; }
.list header { position: relative; margin-bottom: 14px; padding-right: clamp(60px, 12vw, 170px); }
.list h3 { font-size: clamp(38px, 5.4vw, 64px); margin: 6px 0 4px; }
.list h3 a { color: var(--ink); text-decoration: none; }
.list h3 a:hover { color: var(--sin); }
.lat { font: italic 400 19px/1.3 var(--serif); color: var(--ink2); margin: 0; }
.list-t { max-width: 560px; color: var(--ink2); }

/* полевой блокнот */
.bloknot { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 0;
  background-image: repeating-linear-gradient(180deg, transparent 0 33px, rgba(36, 86, 154, .09) 33px 34px); }
.bloknot h2 { margin-bottom: 18px; }
.zam-sp { list-style: none; margin: 0; padding: 0; }
.zam-sp a { display: grid; grid-template-columns: 40px 1fr; gap: 2px 10px; padding: 14px 0; border-bottom: 1px dashed rgba(23, 38, 58, .2); color: var(--ink); text-decoration: none; transition: padding .3s; }
.zam-sp a:hover { padding-left: 8px; }
.zam-sp b { font: 400 23px/1.2 var(--serif); }
.zam-sp a:hover b { color: var(--sin); }
.zam-sp small { grid-column: 2; color: var(--ink2); font-size: 14px; }
.zam-sp .mono { padding-top: 7px; }
.flips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.flip { perspective: 900px; cursor: pointer; min-height: 132px; border-radius: 16px; }
.fl-in { position: relative; display: block; height: 100%; min-height: 132px; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.flip:hover .fl-in, .flip:focus-visible .fl-in, .flip.on .fl-in { transform: rotateY(180deg); }
.flip.on:hover .fl-in { transform: rotateY(180deg); }
.fl-a, .fl-b { position: absolute; inset: 0; border-radius: 16px; padding: 16px; -webkit-backface-visibility: hidden; backface-visibility: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.fl-a { background: linear-gradient(160deg, #8ebbe8, #3d72b4); color: #fff; box-shadow: 0 14px 28px -16px rgba(20, 50, 100, .7); }
.fl-a::before { content: ""; position: absolute; right: 36px; top: 20px; width: 46px; height: 22px; border-radius: 12px; background: rgba(255, 255, 255, .85);
  box-shadow: 10px -8px 0 -2px rgba(255, 255, 255, .85), 22px 0 0 -4px rgba(255, 255, 255, .85); }
.fl-a b { font: 400 22px/1.1 var(--serif); }
.fl-a i { font: italic 15px var(--serif); opacity: .85; }
.fl-b { background: #fff; transform: rotateY(180deg); font-size: 14.5px; line-height: 1.45; justify-content: center; border: 1px solid var(--line); }

/* ---------- карточки ---------- */
.kk { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 22px; }
.k > a { display: block; color: var(--ink); text-decoration: none; transition: transform .6s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d; will-change: transform; }
.k > a.naklon { transition: transform .12s linear; }
.k-f { position: relative; display: block; border-radius: 14px; overflow: hidden; background: #d6e3ef; box-shadow: 0 18px 30px -22px rgba(20, 40, 70, .6); }
.k-f img { width: 100%; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.k > a:hover .k-f img { transform: scale(1.06); }
.k-b { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 55%); }
.naklon .k-b { opacity: 1; }
.k-v { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 7px; padding: 6px 10px 6px 9px; border-radius: 999px;
  background: rgba(10, 20, 36, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font: 12px/1 var(--mono); }
.k-v i { width: 0; height: 0; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.k-t { display: block; font: 400 20px/1.2 var(--serif); margin: 12px 0 3px; }
.k > a:hover .k-t { color: var(--sin); }
.k-m { display: block; font: 12px/1.4 var(--mono); color: var(--ink2); letter-spacing: .03em; }
.kk-list { grid-template-columns: 1.35fr 1fr; gap: 20px; }
.kk-list .k-big { grid-row: span 2; }
.kk-list .k-big > a { height: 100%; display: flex; flex-direction: column; }
.kk-list .k-big .k-f { flex: 1 1 auto; min-height: 260px; }
.kk-list .k-big .k-f img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kk-list .k:not(.k-big) .k-f img { aspect-ratio: 16 / 10; object-fit: cover; }
.kk-list .k:not(.k-big) .k-t { font-size: 18px; }
.kk-4 { grid-template-columns: repeat(4, 1fr); }
.kk-4 .k-f img { aspect-ratio: 4 / 3; object-fit: cover; }
.kk-4 .k-t { font-size: 18px; }
.kladka { display: block; columns: 3 300px; column-gap: 24px; }
.kladka .k { break-inside: avoid; margin-bottom: 30px; }
.js .poyav:not(.vis) { opacity: 0; transform: translateY(70px) perspective(1200px) rotateX(10deg); }
.js .kk > .k:not(.vis) { opacity: 0; transform: translateY(36px); }
.poyav, .kk > .k { transition: opacity 1s cubic-bezier(.2, .8, .2, 1), transform 1.1s cubic-bezier(.2, .8, .2, 1); transform-origin: 50% 0; }
.list.vis.list-l { transform: rotate(-.4deg); } .list.vis.list-r { transform: rotate(.35deg); }
@media (max-width: 1099px) { .list.vis.list-l, .list.vis.list-r { transform: none; } }

/* ---------- внутренние страницы ---------- */
.str-h { position: relative; overflow: hidden; padding: 140px var(--g) 64px; color: var(--ink);
  background: linear-gradient(180deg, #7fb2e6 0%, #b9d6f2 45%, var(--neb) 100%); }
.str-h::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(rgba(238, 244, 250, 0), var(--neb)); }
.str-in { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; }
.str-h h1 { font-size: clamp(48px, 8vw, 112px); line-height: .95; margin: 8px 0 18px; }
.str-h .lead { max-width: 640px; font-size: 19px; color: var(--ink); opacity: .86; margin: 0; }
.kicker { font: 12px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0; }
.kicker a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(23, 38, 58, .35); }
.kicker i { font: italic 15px var(--serif); text-transform: none; letter-spacing: 0; margin: 0 6px; }
.kicker .mono { color: inherit; opacity: .75; white-space: nowrap; }
.obl i { position: absolute; z-index: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0));
  width: 46vw; height: 18vw; min-width: 340px; min-height: 130px; animation: plyt 70s linear infinite; }
.obl i:nth-child(1) { top: 18%; left: -10%; }
.obl i:nth-child(2) { top: 46%; left: 40%; width: 34vw; height: 12vw; animation-duration: 95s; animation-delay: -30s; opacity: .8; }
.obl i:nth-child(3) { top: 4%; left: 70%; width: 28vw; height: 10vw; animation-duration: 120s; animation-delay: -60s; opacity: .7; }
@keyframes plyt { from { transform: translateX(-25vw); } to { transform: translateX(60vw); } }
.str-telo { max-width: 1240px; margin: 0 auto; padding: 18px var(--g) 110px; }
.schet { margin-bottom: 22px; }
/* полоса неба по ярусу */
.r-tuman.str-h, .r-tuman .z-h { --nb1: #b9c6d2; --nb2: #dfe6ec; }
.r-nizkie.str-h, .r-nizkie .z-h { --nb1: #8fa4bb; --nb2: #c9d5e1; }
.r-kuchevye.str-h, .r-kuchevye .z-h { --nb1: #5e9fe0; --nb2: #b4d4f3; }
.r-sredniy.str-h, .r-sredniy .z-h { --nb1: #5a90d0; --nb2: #b0cbea; }
.r-peristye.str-h, .r-peristye .z-h { --nb1: #3f7dcc; --nb2: #a8c8ee; }
.r-grozovye.str-h, .r-grozovye .z-h { --nb1: #3a4a61; --nb2: #5d6d84; --tx: #fff; }
.r-osobye.str-h, .r-osobye .z-h { --nb1: #c89aa6; --nb2: #dbc9d9; }
.r-sverhu.str-h, .r-sverhu .z-h { --nb1: #172a4c; --nb2: #2f4e7c; --tx: #fff; }
.r-nebo.str-h, .r-nebo .z-h { --nb1: #e9b77d; --nb2: #cde0f2; }
.str-h[class*="r-"] { background: linear-gradient(180deg, var(--nb1) 0%, var(--nb2) calc(100% - 70px), var(--neb) 100%); color: var(--tx, var(--ink)); }
.str-h[class*="r-"] .lead, .str-h[class*="r-"] .kicker { color: var(--tx, var(--ink)); }
.str-h.r-grozovye .kicker a, .str-h.r-sverhu .kicker a { border-color: rgba(255, 255, 255, .5); }
.str-h.r-grozovye .obl i, .str-h.r-sverhu .obl i { opacity: .35; }
html:not(.ushli) .tyomno .znak, html:not(.ushli) .tyomno .bystro a { color: #fff; }
html:not(.ushli) .tyomno .znak-t small { color: rgba(255, 255, 255, .8); }

/* шкала ярусов (/oblaka/) */
.shkala { list-style: none; margin: 0; padding: 0 0 0 0; position: relative; }
.shkala::before { content: ""; position: absolute; left: 118px; top: 0; bottom: 0; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, #1b2f54, #3f7dcc 30%, #8fb9e6 70%, #c9d3dc); }
.shkala li a { display: grid; grid-template-columns: 104px 220px 1fr 70px; gap: 0 32px; align-items: center; padding: 18px 0; color: var(--ink); text-decoration: none; position: relative; }
.shkala li a::before { content: ""; position: absolute; left: 112px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--bum); border: 2px solid var(--sin); transition: transform .3s, background .3s; }
.shkala li a:hover::before { transform: scale(1.4); background: var(--zol); }
.sh-v { text-align: right; line-height: 1.35; }
.sh-f { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 16px 26px -18px rgba(20, 40, 70, .6); }
.sh-f img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.shkala li a:hover .sh-f img { transform: scale(1.07); }
.sh-t { display: flex; flex-direction: column; }
.sh-t b { font: 400 clamp(28px, 3vw, 38px)/1.05 var(--serif); }
.shkala li a:hover b { color: var(--sin); }
.sh-t i { font: italic 16px var(--serif); color: var(--ink2); }
.sh-t span { color: var(--ink2); font-size: 15px; margin-top: 6px; }
.sh-n { font: italic 400 46px/1 var(--serif); color: var(--zol); text-align: right; }

/* темы */
.temy { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.temy a { position: relative; display: block; border-radius: 20px; overflow: hidden; color: #fff; text-decoration: none; box-shadow: var(--ten);
  transition: transform .6s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d; }
.temy a.naklon { transition: transform .12s linear; }
.temy img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.temy a:hover img { transform: scale(1.06); }
.temy a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 18, 34, .8), rgba(8, 18, 34, 0) 60%); }
.tm-c { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.tm-c .mono { color: rgba(255, 255, 255, .85); }
.tm-c b { font: italic 400 34px/1.05 var(--serif); }
.tm-c small { font-size: 14.5px; opacity: .9; }

/* журнал */
.filtr { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-bottom: 22px; }
.f-poisk { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 18px; }
.f-poisk span { font: 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); }
.f-poisk input { flex: 1; min-width: 0; border: 0; background: none; font: 16px var(--sans); padding: 10px 4px; color: var(--ink); outline: none; }
.f-kn { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.f-kn button { border: 0; background: none; font: 500 14px var(--sans); padding: 9px 16px; border-radius: 999px; cursor: pointer; color: var(--ink); }
.f-kn button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tbl { overflow-x: auto; border-radius: 18px; background: var(--bum); box-shadow: var(--ten); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th { text-align: left; font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); padding: 16px 14px; border-bottom: 1px solid var(--line); }
td { padding: 12px 14px; border-bottom: 1px dashed rgba(23, 38, 58, .14); vertical-align: top; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: #fff; }
td:nth-child(2) a { font: 400 18px/1.25 var(--serif); color: var(--ink); text-decoration: none; }
td:nth-child(2) a:hover { color: var(--sin); }
.t-v { margin-left: 8px; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--kor); padding: 2px 6px; border-radius: 4px; vertical-align: 2px; }
td.mono { font-size: 12px; padding-top: 16px; }
.f-pusto { text-align: center; padding: 30px; color: var(--ink2); }

/* тексты, заметки, словарь */
.tekst { max-width: 720px; font-size: 18px; line-height: 1.7; }
.tekst > p:first-of-type::first-letter { float: left; font: 400 4.1em/.82 var(--serif); margin: .07em .08em 0 0; color: var(--sin); }
.tekst h2 { font-size: clamp(30px, 3.6vw, 40px); margin-top: 1.4em; }
.data { color: inherit; margin-top: 4px; }
.z-zap { margin-top: 60px; max-width: none; }
.str-telo .tekst + * { margin-top: 40px; }
.zam-bol { max-width: 900px; }
.zam-bol a { padding: 24px 0; grid-template-columns: 70px 1fr; }
.zam-bol b { font-size: clamp(28px, 3.4vw, 40px); }
.zam-bol small { font-size: 16px; }
.zam-bol .mono { font-size: 15px; padding-top: 12px; }
.slovar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 0; }
.slovo { background: var(--bum); border-radius: 16px; padding: 22px 24px; box-shadow: 0 14px 30px -24px rgba(20, 40, 70, .55); border: 1px solid rgba(23, 38, 58, .06); scroll-margin-top: 100px; }
.slovo:target { outline: 2px solid var(--zol); }
.slovo dt { font: 400 26px/1.15 var(--serif); margin-bottom: 8px; }
.slovo dt i { font-size: 17px; color: var(--ink2); }
.slovo dd { margin: 0; color: var(--ink2); }

/* форма */
.pismo { display: grid; gap: 18px; margin-top: 10px; }
.pismo label { display: grid; gap: 6px; font: 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.pismo input, .pismo select, .pismo textarea { font: 17px/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid rgba(23, 38, 58, .2);
  border-radius: 14px; padding: 13px 16px; width: 100%; text-transform: none; letter-spacing: 0; transition: border-color .2s, box-shadow .2s; }
.pismo input:focus, .pismo select:focus, .pismo textarea:focus { outline: none; border-color: var(--sin2); box-shadow: 0 0 0 4px rgba(58, 116, 194, .16); }
.pismo-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pismo .chk { display: flex; gap: 12px; align-items: flex-start; font: 15px/1.5 var(--sans); text-transform: none; letter-spacing: 0; color: var(--ink); }
.pismo .chk input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--sin); }
.pismo .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pismo .kn { justify-self: start; }

/* ---------- запись ---------- */
.zapis { position: relative; }
.z-h { position: relative; padding: 130px var(--g) 34px; background: linear-gradient(180deg, var(--nb1, #7fb2e6) 0%, var(--nb2, #b9d6f2) calc(100% - 60px), var(--neb) 100%); color: var(--tx, var(--ink)); overflow: hidden; }
.z-h > .obl { max-width: none; }
.z-h > :not(.obl) { position: relative; z-index: 2; }
.z-h > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.z-h .kicker { color: inherit; }
.r-grozovye .z-h .kicker a, .r-sverhu .z-h .kicker a { border-color: rgba(255, 255, 255, .5); }
.z-h h1 { font-size: clamp(38px, 6vw, 80px); margin-top: 10px; margin-bottom: 0; }
.z-m { max-width: 1240px; margin: 0 auto; padding: 0 var(--g); }
.z-ramka { position: relative; border-radius: 10px; box-shadow: var(--ten); }
.z-foto .z-ramka { display: flex; justify-content: center; background: #fff; padding: clamp(8px, 1.4vw, 16px); }
.z-foto img { max-height: 80vh; width: auto; max-width: 100%; height: auto; border-radius: 3px; view-transition-name: kadr; }
.lupa { position: relative; display: block; cursor: zoom-in; }
.lupa-z { position: absolute; right: 12px; bottom: 12px; padding: 8px 14px; border-radius: 999px; background: rgba(10, 20, 36, .6); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.lupa:hover .lupa-z, .lupa:focus-visible .lupa-z { opacity: 1; transform: none; }
@media (hover: none) { .lupa-z { opacity: 1; transform: none; } }
.z-video .z-ramka { overflow: hidden; background: #0b1320; border-radius: 18px; }
.z-video video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0b1320; view-transition-name: kadr; }
.z-video.r43 video { aspect-ratio: 4 / 3; } .z-video.r32 video { aspect-ratio: 3 / 2; }
.z-video.r43, .z-video.r32 { max-width: 1000px; }
.pusk { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; border: 0; cursor: pointer;
  background: radial-gradient(circle at center, rgba(8, 18, 34, .2), rgba(8, 18, 34, .55)); color: #fff; font: 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.pusk-k { position: relative; width: 96px; height: 96px; border-radius: 50%; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .4s cubic-bezier(.2, .8, .2, 1), background .3s; }
.pusk-k::before { content: ""; position: absolute; left: 39px; top: 31px; border-left: 28px solid #fff; border-top: 17px solid transparent; border-bottom: 17px solid transparent; }
.pusk-k::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); animation: volna 2.4s ease-out infinite; }
@keyframes volna { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.pusk:hover .pusk-k { transform: scale(1.08); background: rgba(255, 255, 255, .32); }
.z-m figcaption { margin-top: 12px; text-align: right; font: 12px/1.5 var(--mono); color: var(--ink2); letter-spacing: .03em; }
.nohls, .nojs { margin: 12px 0 0; padding: 12px 16px; background: #fff3e6; border-radius: 12px; font-size: 15px; }
.z-cols { max-width: 1240px; margin: 46px auto 0; padding: 0 var(--g); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.z-text { font-size: 18px; line-height: 1.7; }
.z-lead { font: 400 clamp(22px, 2.2vw, 27px)/1.45 var(--serif); }
.see { font-size: 16px; color: var(--ink2); }
.z-karta { position: sticky; top: 90px; background: var(--bum); border-radius: 6px; padding: 26px 26px 14px; box-shadow: var(--ten);
  outline: 1px solid rgba(23, 38, 58, .16); outline-offset: -9px; }
.z-karta h2 { font: 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--kor); margin: 0 0 14px; }
.z-karta dl { margin: 0; }
.z-karta dl div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px dashed rgba(23, 38, 58, .18); font-size: 15px; }
.z-karta dt { font: 11px/1.9 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.z-karta dd { margin: 0; overflow-wrap: anywhere; }
.sosedi { max-width: 1240px; margin: 70px auto 0; padding: 0 var(--g); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ss { display: flex; gap: 16px; align-items: center; padding: 12px; border-radius: 18px; background: var(--bum); color: var(--ink); text-decoration: none;
  box-shadow: 0 16px 30px -24px rgba(20, 40, 70, .6); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.ss.naklon { transition: transform .12s linear; }
.ss img { width: 130px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; flex: none; }
.ss span { display: flex; flex-direction: column; min-width: 0; }
.ss small { font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); }
.ss b { font: 400 20px/1.2 var(--serif); }
.ss:hover b { color: var(--sin); }
.ss.sl { flex-direction: row-reverse; text-align: right; }
.esche { max-width: 1240px; margin: 80px auto 0; padding: 0 var(--g) 110px; }
.esche h2 { font-size: clamp(30px, 3.6vw, 44px); }

/* ---------- просмотр снимка ---------- */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(12, 22, 38, 0); transition: background .45s; touch-action: none; overscroll-behavior: contain; }
.lb.on { background: rgba(12, 22, 38, .93); }
@supports (backdrop-filter: blur(1px)) { .lb.on { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); background: rgba(12, 22, 38, .86); } }
.lb-i { position: absolute; max-width: none; transform-origin: 50% 50%; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; border-radius: 4px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); will-change: transform; }
.lb-i:active { cursor: grabbing; }
.lb-x { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 2; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .12);
  color: #fff; font: 500 14px var(--sans); padding: 10px 16px; border-radius: 999px; cursor: pointer; opacity: 0; transition: opacity .4s .15s; }
.lb-c { position: absolute; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); margin: 0; color: #fff; text-align: center; display: flex; flex-direction: column; gap: 2px; opacity: 0; transition: opacity .4s .15s; }
.lb-c b { font: italic 400 22px/1.2 var(--serif); }
.lb-c span { font: 12px var(--mono); opacity: .8; }
.lb-c small { font-size: 12px; opacity: .55; }
.lb.on .lb-x, .lb.on .lb-c { opacity: 1; }
.lb-otkr body { overflow: hidden; }

/* ---------- туман: 404 и ошибки ---------- */
.str-tuman { background: #dfe6ec; }
.tuman-str { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 120px var(--g) 80px;
  background: linear-gradient(180deg, #b8c7d4 0%, #dfe6ec 50%, #eef2f5 100%); }
.tm-sl i { position: absolute; left: -50%; width: 200%; height: 40%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)); animation: tuman 26s ease-in-out infinite alternate; }
.tm-sl i:nth-child(1) { top: 5%; }
.tm-sl i:nth-child(2) { top: 35%; animation-duration: 34s; animation-delay: -10s; opacity: .8; }
.tm-sl i:nth-child(3) { top: 60%; animation-duration: 22s; animation-delay: -5s; }
.tm-sl i:nth-child(4) { top: 20%; height: 70%; animation-duration: 40s; opacity: .5; }
@keyframes tuman { from { transform: translateX(-12%) scaleY(.9); } to { transform: translateX(12%) scaleY(1.1); } }
.tm-in { position: relative; z-index: 2; max-width: 640px; text-align: center; }
.tm-in h1 { font: italic 400 clamp(46px, 8vw, 96px)/1 var(--serif); margin: 10px 0 20px; }
.tm-in p { font-size: 18px; }
.tm-ss { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.tm-ss .kn-2 { color: var(--ink); border-color: rgba(23, 38, 58, .3); background: rgba(255, 255, 255, .5); }
.tm-ss .kn-2:hover { color: var(--ink); }

/* ---------- подвал ---------- */
.niz { position: relative; color: #e7eef7; background: linear-gradient(180deg, #2c4a6e 0%, #1a2c45 60%, #121f33 100%); margin-top: 0; }
.glavnaya .niz { margin-top: 20vh; }
.niz-gory { position: absolute; left: 0; right: 0; top: -119px; width: 100%; height: 120px; display: block; fill: #2c4a6e; }
.niz-gory .g2 { fill: #2c4a6e; }
.niz-gory path:first-child { fill: #3d5f86; }
.niz-in { max-width: 1240px; margin: 0 auto; padding: 50px var(--g) max(40px, env(safe-area-inset-bottom)); }
.niz-big { font: italic 400 clamp(34px, 5vw, 64px)/1.05 var(--serif); color: #fff; margin-bottom: 18px; }
.niz p { max-width: 720px; }
.niz a { color: #fff; }
.niz a:hover { color: var(--zol); }
.niz-ss { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; font: 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.niz-ss a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 2px; }

/* ---------- переходы между страницами ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .35s cubic-bezier(.4, 0, .2, 1) both vt-out; }
::view-transition-new(root) { animation: .45s cubic-bezier(.2, .8, .2, 1) both vt-in; }
::view-transition-group(kadr) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* ---------- ширины ---------- */
@media (max-width: 1100px) {
  .kk-4 { grid-template-columns: repeat(2, 1fr); }
  .shkala li a { grid-template-columns: 90px 170px 1fr 50px; gap: 0 22px; }
  .shkala::before { left: 104px; } .shkala li a::before { left: 98px; }
}
@media (max-width: 900px) {
  .bystro { display: none; }
  .menu-p ol { grid-template-columns: 1fr; }
  .kino-h, .bloknot { grid-template-columns: 1fr; }
  .bloknot { gap: 34px; }
  .z-cols { grid-template-columns: 1fr; gap: 30px; }
  .z-karta { position: static; }
  .temy { grid-template-columns: repeat(2, 1fr); }
  .slovar { grid-template-columns: 1fr; }
  .kk { grid-template-columns: repeat(2, 1fr); }
  .kk-kino { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-left: calc(-1 * clamp(22px, 4vw, 56px)); margin-right: calc(-1 * clamp(22px, 4vw, 56px));
    padding: 4px clamp(22px, 4vw, 56px) 10px; scrollbar-width: none; }
  .kk-kino::-webkit-scrollbar { display: none; }
  .kk-kino .k { flex: 0 0 68%; scroll-snap-align: start; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .znak-t small { display: none; }
  .znak-t b { font-size: 23px; }
  .menu summary { padding: 10px 14px; }
  .hero { justify-content: flex-end; padding-bottom: 96px; }
  .hero-p { padding: 16px 18px 4px; font-size: 16px; }
  .hero-p p + p { display: none; }
  .hero-b .kn { flex: 1 1 auto; justify-content: center; }
  .kino, .bloknot { border-radius: 24px; margin-bottom: 16vh; }
  .kino-c { grid-template-columns: 1fr; }
  .kino-c small { display: none; }
  .kino-c .mono { grid-row: auto; grid-column: 1; }
  .kino-pl { width: 66px; height: 66px; margin: -33px 0 0 -33px; top: 38%; }
  .kino-pl::before { left: 26px; top: 20px; border-left-width: 20px; border-top-width: 13px; border-bottom-width: 13px; }
  .atlas-h { margin-bottom: 12vh; }
  .list { margin-bottom: 16vh; outline-offset: -8px; }
  .kk-list { grid-template-columns: 1fr 1fr; gap: 14px; }
  .kk-list .k-big { grid-column: 1 / -1; grid-row: auto; }
  .kk-list .k-big .k-f { min-height: 0; }
  .kk-list .k-big .k-f img { position: static; height: auto; aspect-ratio: 4 / 3; }
  .kk-list .k:not(.k-big) .k-t { font-size: 16px; }
  .k-t { font-size: 18px; }
  .kk { gap: 22px 14px; }
  .flips { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fl-a b { font-size: 19px; }
  .fl-b { font-size: 13px; padding: 12px; }
  .flip, .fl-in { min-height: 150px; }
  .str-h { padding-top: 110px; padding-bottom: 44px; }
  .str-h .lead { font-size: 17px; }
  .kladka { columns: 1; }
  .shkala::before { left: 7px; }
  .shkala li a { grid-template-columns: 96px 1fr; gap: 4px 16px; padding: 14px 0 14px 28px; }
  .shkala li a::before { left: 1px; top: 30px; margin: 0; }
  .sh-v { grid-column: 1 / -1; text-align: left; }
  .sh-n { display: none; }
  .sh-t span { display: none; }
  .sh-t b { font-size: 25px; }
  .temy { grid-template-columns: 1fr; }
  .temy img { aspect-ratio: 16 / 11; }
  th.t-a, td.t-a, th.t-g, td.t-g { display: none; }
  td:nth-child(3) { font-size: 14px; line-height: 1.35; }
  td:first-child { padding-right: 0; }
  td, th { padding-left: 10px; padding-right: 10px; }
  td:nth-child(2) a { font-size: 17px; }
  .pismo-2 { grid-template-columns: 1fr; }
  .z-h { padding-top: 104px; padding-bottom: 24px; }
  .z-m { padding: 0; }
  .z-foto .z-ramka { padding: 0; border-radius: 0; }
  .z-video .z-ramka { border-radius: 0; }
  .z-foto img { border-radius: 0; }
  .z-m figcaption { padding: 0 var(--g); }
  .pusk-k { width: 76px; height: 76px; }
  .pusk-k::before { left: 30px; top: 24px; border-left-width: 22px; border-top-width: 14px; border-bottom-width: 14px; }
  .z-karta dl div { grid-template-columns: 96px minmax(0, 1fr); }
  .sosedi { grid-template-columns: 1fr; margin-top: 50px; }
  .ss img { width: 104px; }
  .ss b { font-size: 18px; }
  .esche { margin-top: 56px; }
  .tekst { font-size: 17px; }
  .niz-gory { height: 70px; top: -69px; }
}

/* ---------- меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
  .js .poyav:not(.vis), .js .kk > .k:not(.vis) { opacity: 1; transform: none; }
  .fl-in { transform: none !important; }
  .fl-a, .fl-b { position: relative; transform: none; }
  .flip, .fl-in { min-height: 0; }
  .fl-a { border-radius: 16px 16px 0 0; } .fl-b { border-radius: 0 0 16px 16px; }
}
