@font-face { font-family: "Exo 2"; font-weight: 100 900; font-display: swap; src: url(/fonts/exo-2-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Exo 2"; font-weight: 100 900; font-display: swap; src: url(/fonts/exo-2-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	--blue: #0274be; --blue-d: #015a94; --navy: #16163f; --ink: #23232e; --muted: #5d6173;
	--soft: #f3f6fa; --line: #e3e8ef; --orange: #f08a24; --purple: #5b3fa6;
	--r: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.55 "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-flex; align-items: center; gap: .5em; border: 0; border-radius: 999px; padding: .75em 1.4em; font: 600 16px/1.2 inherit; font-family: inherit; cursor: pointer; text-decoration: none; background: var(--blue); color: #fff; }
.btn:hover { background: var(--blue-d); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: var(--soft); }
.ico { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Шапка */
.top { border-bottom: 1px solid var(--line); background: #fff; }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; }
.brand img { width: 40px; height: 40px; }
.top .back { margin-left: auto; font-size: 15px; color: var(--muted); text-decoration: none; }
.top .back:hover { color: var(--blue); }

/* Главная: выпуски */
.hero { background: linear-gradient(135deg, #3a2a8c, var(--purple) 60%, #2c6fc4); color: #fff; padding: clamp(40px, 7vw, 88px) 0; }
.hero h1 { color: #fff; font-size: clamp(36px, 5vw + 12px, 72px); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 .25em; }
.hero p { font-size: clamp(17px, 1vw + 13px, 21px); max-width: 640px; margin: 0; opacity: .92; }
.issues { padding: clamp(36px, 6vw, 72px) 0; }
.issue { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.issue + .issue { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }
.issue-cover { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 24px 50px -20px rgba(22, 22, 63, .45); transition: transform .25s; }
.issue-cover img { width: 100%; }
.issue-cover:hover { transform: translateY(-4px) rotate(-1deg); }
.issue-meta { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; margin-bottom: .4em; }
.issue h2 { font-size: clamp(28px, 2vw + 16px, 40px); }
.toc { list-style: none; padding: 0; margin: 0 0 28px; }
.toc li { border-top: 1px solid var(--line); }
.toc a { display: flex; gap: 16px; padding: 12px 0; text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--blue); }
.toc .pg { flex: none; width: 3.2em; color: var(--blue); font-weight: 700; }
.issue .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 15px; }
@media (max-width: 700px) {
	.issue { grid-template-columns: 1fr; }
	.issue-cover { max-width: 280px; }
	.top .back span { display: none; }
}

/* Читалка */
.reader { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 40%, #3b3a6e, #1c1b40 70%); color: #fff; --bar: 56px; }
.reader .top { background: transparent; border-color: rgba(255, 255, 255, .12); }
.reader .top .wrap { max-width: none; min-height: var(--bar); }
.reader .brand { color: #fff; font-size: 16px; }
.reader .brand img { width: 32px; height: 32px; }
.reader .back { color: rgba(255, 255, 255, .7); }
.reader .back:hover { color: #fff; }
.tools { display: flex; gap: 4px; }
.tool { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; text-decoration: none; }
.tool:hover { background: rgba(255, 255, 255, .12); }
.tool[aria-pressed="false"] .on, .tool[aria-pressed="true"] .off { display: none; }
.stage { flex: 1; display: grid; place-items: center; padding: 16px; overflow: hidden; }
/* ширина книги: разворот (страница 0,7 высоты) вписывается в экран по высоте */
.book-wrap { width: min(100%, calc((100svh - var(--bar) * 2 - 40px) * 1.4)); }
.book { margin: 0 auto; }
.book .page { background: #fff; overflow: hidden; }
.book .page img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.nav { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: var(--bar); padding: 0 16px 8px; }
.nav .tool { background: rgba(255, 255, 255, .1); }
.nav .tool:disabled { opacity: .3; cursor: default; }
.counter { min-width: 9em; text-align: center; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .85); }
.hint { position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); text-align: center; background: rgba(0, 0, 0, .6); padding: 8px 16px; border-radius: 14px; font-size: 14px; pointer-events: none; transition: opacity .6s; }
.hint.gone { opacity: 0; }
.zoom { position: fixed; inset: 0; z-index: 50; background: #1c1b40; overflow: auto; display: none; overscroll-behavior: contain; }
.zoom.open { display: block; }
.zoom-bar { position: sticky; top: 0; left: 0; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: rgba(28, 27, 64, .92); backdrop-filter: blur(6px); width: 100vw; }
.zoom-bar .tool { background: rgba(255, 255, 255, .12); }
.zoom-page { flex: 1; padding-left: 8px; font-size: 15px; color: rgba(255, 255, 255, .85); }
.zoom-label { min-width: 3.4em; text-align: center; font-variant-numeric: tabular-nums; font-size: 15px; }
.zoom-pages { display: flex; gap: 4px; margin: 8px auto 72px; padding: 0 8px; box-sizing: content-box; }
.zoom-pages img { flex: 1; min-width: 0; width: 100%; max-width: none; height: auto; background: #fff; }
.zoom-step { position: fixed; bottom: 14px; background: rgba(255, 255, 255, .18); z-index: 2; }
.zoom-step.prev { left: 14px; }
.zoom-step.next { right: 14px; }
.zoom-step:disabled { opacity: .25; }
.hint-touch { display: none; }
@media (pointer: coarse) { .hint-desk { display: none; } .hint-touch { display: inline; } }
noscript .pages-plain img { margin: 0 auto 16px; max-width: 700px; }
@media (max-width: 700px) {
	.reader .brand span { display: none; }
	.nav { flex-wrap: wrap; gap: 6px 10px; padding-bottom: 10px; }
	.counter { min-width: 0; flex: 1; max-width: 12em; font-size: 15px; }
	.tools { width: 100%; justify-content: center; gap: 10px; }
	.hint { bottom: 120px; }
	.book-wrap { width: min(100%, calc((100svh - 190px) * .7)); }
	.zoom-pages.two { flex-direction: column; align-items: center; }
	.zoom-pages.two img { width: 96vw; }
}
@media (prefers-reduced-motion: reduce) { .issue-cover { transition: none; } }
