/* шрифт Inter лежит на нашем сервере (а не у Google): адреса посетителей никуда не передаются; по файлу на каждую толщину */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-cyrillic-400.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-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: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-cyrillic-500.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-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: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-cyrillic-600.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-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: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter-cyrillic-700.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter-latin-700.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: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/inter-cyrillic-800.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/inter-latin-800.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; }
/* Index Media — версия 7. Один шрифт без засечек, тёмный первый экран с синим акцентом,
   единая форма: скруглённые прямоугольники. Цвет журнала (--jc) — только как акцент. */
:root {
  --bg: #F4F5F7; --card: #FFFFFF; --ink: #10141B; --grey: #667085; --hair: #E2E5EA; --night: #0A0E15; --night2: #121823; --line: #222A38;
  --accent: #21A8DF; --accent-d: #0F7FB3; --bone: #EEF1F5;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --logo: 'Clarendon IM', 'Besley', Georgia, serif;
  --r: 14px; --r-s: 10px; --header-h: 68px; --pad: 40px;
  --stripe: linear-gradient(90deg, #D8334A 0 20%, #24567A 20% 40%, #E9A800 40% 60%, #EE7D21 60% 80%, #5E7F70 80% 100%);
}
@font-face { font-family: 'Clarendon IM'; src: url('clarendon.woff') format('woff'); font-weight: 400 900; font-display: swap; }
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: clip; }
html.menu-lock { overflow: hidden; }
body { font-family: var(--font); font-size: 16px; line-height: 1.55; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { max-width: 100%; display: block; }
svg { display: block; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
h1, h2, h3 { font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
[style*="--jc"] { --jd: color-mix(in srgb, var(--jc) 80%, #000); }
.lab { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lab a:hover { color: var(--ink); }
.mk { width: 9px; height: 9px; border-radius: 3px; flex: none; display: inline-block; }
.muted { color: var(--grey); } .small { font-size: 13.5px; }
.note { color: var(--grey); font-size: 14.5px; margin-top: 18px; max-width: 62ch; }
mark { background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: var(--r-s); border: 1.5px solid var(--ink); font-size: 14.5px; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn:active { transform: scale(.98); }
.btn.solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.solid:hover { background: var(--accent-d); border-color: var(--accent-d); }
.btn.bone { background: #fff; border-color: #fff; color: var(--ink); }
.btn.bone:hover { background: var(--bone); }
.btn[disabled] { opacity: .5; cursor: not-allowed; background: none; color: var(--ink); }
.tbtn { font-size: 14px; font-weight: 600; padding: 4px 0; border-bottom: 1.5px solid transparent; transition: border-color .2s; }
.tbtn:hover, .tbtn.on { border-color: currentColor; }
.lnk { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--accent-d); transition: color .2s; }
.lnk svg { width: 16px; height: 16px; transition: transform .2s; }
.lnk:hover { color: var(--ink); } .lnk:hover svg { transform: translateX(3px); }
.lnk.muted { color: var(--grey); font-weight: 500; font-size: 13.5px; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--jc, var(--accent)) 12%, #fff); color: var(--jd, var(--accent-d)); }

/* ---------- шапка и меню ---------- */
.header { position: sticky; top: 0; z-index: 120; height: var(--header-h); background: var(--night); color: #fff; }
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--logo); font-size: 23px; letter-spacing: -.01em; color: #fff; white-space: nowrap; }
.logo span { color: var(--accent); }
.hbtns { display: flex; align-items: center; gap: 12px; }
.cartbtn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid #3A4456; display: grid; place-items: center; position: relative; transition: border-color .2s, background .2s; }
.cartbtn:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.cartbtn svg { width: 20px; height: 20px; }
.cart-n { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; font-style: normal; display: grid; place-items: center; }
.cart-n:empty { display: none; }
.burger { width: 42px; height: 42px; display: grid; place-content: center; gap: 6px; }
.burger i { display: block; width: 26px; height: 2px; border-radius: 2px; background: #fff; transition: transform .5s cubic-bezier(.76,0,.24,1), opacity .25s; }
.menu-open .burger i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .burger i:nth-child(2) { opacity: 0; }
.menu-open .burger i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 110; background: var(--night); color: #fff; padding-top: var(--header-h); overflow: auto; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s cubic-bezier(.76,0,.24,1), visibility 0s .7s; }
.menu-open .menu { clip-path: inset(0); visibility: visible; transition-delay: 0s; }
.menu .wrap { padding-top: 4vh; padding-bottom: 40px; }
.menu li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(22px); transition: opacity .3s, transform .3s; }
.menu-open .menu li { opacity: 1; transform: none; transition: opacity .6s, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(.25s + var(--n) * 60ms); }
.menu li a { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: clamp(14px, 2.6vh, 26px) 0; }
.menu li b { font-size: clamp(26px, 4.2vw, 50px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; transition: color .25s, transform .4s cubic-bezier(.2,.7,.2,1); }
.menu li em { font-style: normal; font-size: 14px; color: #8892A4; text-align: right; }
.menu li a:hover b, .menu li a.on b { color: var(--accent); }
.menu li a:hover b { transform: translateX(10px); }

/* ---------- первый экран: Index Media SI ---------- */
.hero { position: relative; background: var(--night); color: #fff; text-align: center; padding: clamp(56px, 10vh, 104px) 0 clamp(84px, 13vh, 128px); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('img-histology.jpg') center / cover; opacity: .2; filter: saturate(.9) hue-rotate(-12deg); }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(26,163,220,.34), transparent 70%), linear-gradient(180deg, rgba(10,14,21,.55), var(--night) 96%); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1, .ai h1 { font-size: clamp(38px, 6vw, 76px); letter-spacing: -.04em; line-height: 1; }
.hero h1 span, .ai h1 span { color: var(--accent); }
.sub { margin-top: 14px; font-size: clamp(15px, 1.5vw, 18px); color: #A9B4C6; font-weight: 500; }
.ask { display: flex; align-items: center; max-width: 720px; margin: 34px auto 0; height: 64px; padding: 0 8px 0 22px; background: #fff; color: var(--ink); border-radius: var(--r); text-align: left; box-shadow: 0 18px 50px -20px rgba(0,0,0,.7); }
.ask svg { width: 22px; height: 22px; flex: none; color: var(--grey); }
.ask input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; font-size: 17px; padding: 0 16px; outline: 0; color: var(--ink); }
.ask input::placeholder { color: #98A2B3; }
.ask .btn { height: 48px; border: 0; background: var(--accent); color: #fff; padding: 0 24px; }
.ask .btn:hover { background: var(--accent-d); }
.ask .btn i { display: none; font-style: normal; font-size: 20px; }
.ask:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.hero-n { margin-top: 18px; font-size: 13.5px; color: #8892A4; }
.ask.light { max-width: none; margin: 30px 0 0; border: 1.5px solid var(--hair); box-shadow: none; }

.quick { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -44px; }
.quick a { background: var(--card); border-radius: var(--r); padding: 20px; display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; align-items: center; box-shadow: 0 10px 30px -18px rgba(16,20,27,.45); border: 1px solid var(--hair); transition: transform .25s, border-color .25s; }
.quick a:hover { transform: translateY(-3px); border-color: var(--accent); }
.quick svg { grid-row: 1 / 3; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent-d); }
.quick b { font-size: 16.5px; font-weight: 700; letter-spacing: -.015em; align-self: end; }
.quick span { font-size: 13px; color: var(--grey); align-self: start; }

/* ---------- разделы ---------- */
.sec { padding-top: 76px; }
.sec0 { padding-top: 6px; padding-bottom: 36px; }
.sh { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.sh h2 { font-size: clamp(26px, 3vw, 36px); }
.sh p { color: var(--grey); font-size: 14.5px; }
.phead { padding-top: 40px; padding-bottom: 24px; }
.ph-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-top: 10px; }
.phead h1 { font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -.035em; }
.phead p { color: var(--grey); margin-top: 14px; max-width: 62ch; }
.row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.price { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* новинки */
.news { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.news article, .pubcard { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; }
.news article:first-child { display: grid; grid-template-columns: 190px 1fr; gap: 26px; padding: 26px; align-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--jc) 9%, #fff), #fff 60%); }
.news .cov img { width: 100%; border-radius: 6px; box-shadow: 0 16px 34px -16px rgba(16,20,27,.6); transition: transform .3s; }
.news .cov:hover img { transform: translateY(-4px); }
.news h3 { font-size: clamp(22px, 2.2vw, 28px); margin: 12px 0 10px; }
.mini li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 9px 0; border-top: 1px solid var(--hair); font-size: 14px; line-height: 1.4; }
.mini span { color: var(--jd); font-weight: 600; font-variant-numeric: tabular-nums; }
.mini a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini a:hover { color: var(--accent-d); }
.news .row { margin-top: 18px; }
.pubcard { display: flex; flex-direction: column; cursor: pointer; transition: transform .25s, box-shadow .25s; }
.pubcard:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -22px rgba(16,20,27,.5); }
.pubcard > div:last-child { padding: 18px 20px 22px; }
.pubcard h3 { font-size: 18px; line-height: 1.25; letter-spacing: -.02em; margin: 10px 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pubcard .ds, .news .ds { font-size: 13.5px; color: var(--grey); }
.pic { aspect-ratio: 16 / 8; background-size: 240%; background-repeat: no-repeat; background-color: var(--night2); }
.news .pic { aspect-ratio: auto; flex: 1; min-height: 150px; }
.pic.plain { background: linear-gradient(135deg, var(--jc), var(--jc2, var(--jd))); display: flex; align-items: flex-end; padding: 16px 20px; }
.pic.plain span { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.03em; color: rgba(255,255,255,.92); }
.pubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* каталог */
.jcards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.jcards a { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); padding: 14px 14px 18px; display: grid; gap: 4px; transition: transform .25s, border-color .25s; }
.jcards a:hover { transform: translateY(-3px); border-color: var(--jc); }
.jc { border-radius: 10px; aspect-ratio: 1 / 1.05; display: grid; place-items: center; background: color-mix(in srgb, var(--jc) 13%, #fff); margin-bottom: 10px; }
.jc img { width: 58%; border-radius: 4px; box-shadow: 0 12px 24px -12px rgba(16,20,27,.6); transition: transform .3s; }
.jcards a:hover img { transform: scale(1.04); }
.jcards b { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.jcards span { font-size: 13px; color: var(--grey); font-variant-numeric: tabular-nums; }
.jlist { display: grid; gap: 12px; }
.jlist a { display: grid; grid-template-columns: 92px 1fr 24px; gap: 26px; align-items: center; padding: 20px 24px; background: var(--card); border: 1px solid var(--hair); border-left: 4px solid var(--jc); border-radius: var(--r); transition: transform .25s, box-shadow .25s; }
.jlist a:hover { transform: translateX(4px); box-shadow: 0 14px 30px -22px rgba(16,20,27,.5); }
.jlist img { width: 92px; border-radius: 5px; box-shadow: 0 10px 22px -12px rgba(16,20,27,.55); }
.jlist h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 6px 0; }
.jlist p { color: var(--grey); font-size: 14.5px; max-width: 60ch; }
.jlist .meta { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 10px; font-size: 13.5px; font-weight: 500; }
.jlist em { font-style: normal; color: var(--grey); }

/* мероприятия */
.evs { display: grid; gap: 10px; }
.ev { display: grid; grid-template-columns: 96px 1fr auto; gap: 22px; align-items: center; padding: 18px 22px; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); }
.ev .d { text-align: center; padding: 8px 6px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 10%, #fff); }
.ev .d b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--accent-d); font-variant-numeric: tabular-nums; }
.ev .d span { font-size: 11.5px; font-weight: 600; color: var(--grey); }
.ev h3 { font-size: 17.5px; line-height: 1.3; letter-spacing: -.015em; margin: 5px 0 3px; }
.ev p { font-size: 14px; color: var(--grey); }
.ev .btn { height: 40px; padding: 0 16px; font-size: 13.5px; }

/* об издательстве */
.about .lead { font-size: clamp(19px, 2vw, 24px); line-height: 1.4; font-weight: 500; letter-spacing: -.015em; max-width: 34em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0 8px; max-width: 760px; }
.facts li { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); padding: 18px 20px; }
.facts b { display: block; font-size: 32px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--accent-d); }
.facts span { font-size: 13.5px; color: var(--grey); }
.about .sh { margin-top: 48px; margin-bottom: 16px; }
.about .sh h2 { font-size: 24px; }
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.contacts li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); padding: 18px 20px; font-size: 15px; font-weight: 500; line-height: 1.35; }
.contacts svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent-d); }
.contacts span { display: block; font-size: 12.5px; color: var(--grey); font-weight: 500; }
.contacts a:hover { color: var(--accent-d); }
.plist { display: flex; flex-wrap: wrap; gap: 8px; }
.plist span { padding: 7px 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--hair); font-size: 14px; font-weight: 500; }
.about .find { max-width: 520px; }
.about .small { margin-top: 12px; }
.about .small .lnk { font-size: 13.5px; }
.find { display: flex; gap: 8px; }
.find input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 1.5px solid var(--hair); border-radius: var(--r-s); background: #fff; font: inherit; font-size: 15px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.find input:focus { outline: none; border-color: var(--accent); }
.find.big input { height: 56px; font-size: 17px; padding: 0 20px; }
.find.big .btn { height: 56px; padding: 0 30px; }

/* ---------- содержание выпуска: строка статьи ---------- */
.arts { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); padding: 4px 22px; }
.art { display: grid; grid-template-columns: 46px 1fr; gap: 0 10px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.art:last-child { border-bottom: 0; }
.art .pg, .lib .pg { font-size: 14px; font-weight: 700; line-height: 1.6; color: var(--jd, var(--grey)); font-variant-numeric: tabular-nums; }
.art .t { font-size: 16.5px; font-weight: 600; line-height: 1.38; letter-spacing: -.01em; transition: color .2s; }
.art .t:hover { color: var(--accent-d); }
.art .au { font-size: 13.5px; color: var(--grey); margin-top: 6px; line-height: 1.5; }
.art .au a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.more { white-space: nowrap; }
.art details { margin-top: 10px; }
.art summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 8px; border-radius: 8px; background: var(--bg); font-size: 13px; font-weight: 600; transition: background .2s; }
.art summary::-webkit-details-marker { display: none; }
.art summary::before { content: '+'; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--jd, var(--ink)); color: #fff; font-size: 14px; line-height: 1; }
.art details[open] summary::before { content: '–'; }
.art summary:hover { background: var(--hair); }
.art > div > .lnk.muted { margin-top: 10px; }
.abs { padding: 12px 0 4px; max-width: 70ch; animation: fade .35s; }
.abs p { font-size: 15px; line-height: 1.62; }
.abs .lnk { font-size: 13.5px; }
.kws { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 14px 0; }
.kws .lab { margin-right: 4px; }
.kw { font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--hair); transition: border-color .2s, color .2s; }
.kw:hover { border-color: var(--accent); color: var(--accent-d); }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } }

/* журнал, выпуск, статья */
.tools { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 6px 0 16px; }
.tools .lab { margin-right: auto; }
.sel { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--grey); }
.sel select { font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); height: 38px; padding: 0 32px 0 12px; border: 1.5px solid var(--hair); border-radius: var(--r-s); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2310141B' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; cursor: pointer; max-width: 100%; }
.radio { display: inline-flex; padding: 3px; border-radius: var(--r-s); background: var(--hair); }
.radio button { height: 34px; padding: 0 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--grey); transition: background .2s, color .2s; }
.radio button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(16,20,27,.15); }
.issues { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); padding: 2px 22px; }
.issues a { display: grid; grid-template-columns: 70px 1fr 110px 100px 170px; gap: 18px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--hair); font-size: 14.5px; transition: color .2s; }
.issues li:last-child a { border-bottom: 0; }
.issues a:hover { color: var(--accent-d); }
.issues b { font-size: 15px; font-weight: 700; color: var(--jd); font-variant-numeric: tabular-nums; }
.issues span { color: var(--grey); }
.issues .pr { color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.issues em { font-style: normal; font-size: 13.5px; font-weight: 600; text-align: right; color: var(--accent-d); }
.issue { display: grid; grid-template-columns: 290px 1fr; gap: 44px; align-items: start; padding-bottom: 36px; }
.issue aside { position: sticky; top: calc(var(--header-h) + 22px); display: grid; gap: 14px; justify-items: start; background: var(--card); border: 1px solid var(--hair); border-top: 4px solid var(--jc); border-radius: var(--r); padding: 22px; }
.issue aside img { width: 150px; border-radius: 5px; box-shadow: 0 14px 28px -14px rgba(16,20,27,.6); }
.issue h1 { font-size: 30px; }
.issue h1 span { color: var(--jd); }
dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 18px; font-size: 14px; width: 100%; border-top: 1px solid var(--hair); padding-top: 14px; }
dt { color: var(--grey); }
dd { font-weight: 500; }
dd a { color: var(--accent-d); }
.issue aside .btn { width: 100%; }
.paper { max-width: 860px; padding-top: 4px; padding-bottom: 48px; }
.paper h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.14; margin: 12px 0 24px; }
.people { margin-bottom: 28px; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); padding: 2px 20px; border-top: 4px solid var(--jc, var(--accent)); }
.people li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-weight: 600; }
.people li:last-child { border-bottom: 0; }
.people li > a:first-child:hover { color: var(--accent-d); }
.people span { font-weight: 400; color: var(--grey); font-size: 14px; flex: 1 1 280px; }
.people .lnk { margin-left: auto; font-size: 13px; font-weight: 500; }
.abstract { font-size: clamp(17px, 1.7vw, 19px); line-height: 1.62; margin: 14px 0 22px; }
.paper > p:not(.abstract):not(.note) { font-size: 17px; line-height: 1.7; margin-bottom: 16px; }
.paper blockquote { border-left: 3px solid var(--accent); padding-left: 18px; font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -.015em; margin: 24px 0; }
.cite { margin: 24px 0; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.pn a { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); padding: 16px 18px; font-size: 14.5px; font-weight: 600; line-height: 1.4; transition: border-color .2s; }
.pn a:hover { border-color: var(--accent); }
.pn a:last-child { text-align: right; } .pn a:last-child .lab { justify-content: flex-end; }
.pn .lab { margin-bottom: 6px; }

/* подборки по выпускам, поиск, указатели */
.grp { margin-top: 30px; }
.grp-h { display: flex; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; padding: 0 4px 12px; }
.grp-h .mk { align-self: center; }
.grp-h b { font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: var(--jd); }
.grp-h span { font-size: 14px; color: var(--grey); font-weight: 500; }
.grp-h span:first-of-type { color: var(--ink); font-size: 17px; font-weight: 700; }
.grp-h em { margin-left: auto; font-style: normal; font-size: 13.5px; font-weight: 600; color: var(--accent-d); }
.find.big { margin: 4px 0 14px; }
.found { margin-top: 20px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.sugg { display: flex; align-items: baseline; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.names { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14.5px; }
.names a { padding: 5px 11px; border-radius: 8px; background: var(--card); border: 1px solid var(--hair); font-weight: 500; transition: border-color .2s, color .2s; }
.names a:hover { border-color: var(--accent); color: var(--accent-d); }
.hint { padding-top: 18px; }
.co { margin-top: 36px; } .co .lab { margin-bottom: 10px; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--hair); margin-bottom: 18px; }
.tabs a { font-size: 14.5px; font-weight: 600; padding: 12px 0; color: var(--grey); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-color: var(--accent); }
.abc { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.abc a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--card); border: 1px solid var(--hair); font-size: 14px; font-weight: 600; }
.abc a:hover { border-color: var(--accent); color: var(--accent-d); }
.letter { display: grid; grid-template-columns: 60px 1fr; padding: 18px 0; border-bottom: 1px solid var(--hair); scroll-margin-top: calc(var(--header-h) + 12px); }
.letter .L { font-size: 28px; font-weight: 700; color: var(--accent-d); }
.letter:not(:has(.L)) { grid-template-columns: 1fr; }
.index { columns: 3; column-gap: 40px; }
.index li { break-inside: avoid; }
.index a { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14.5px; }
.index a:hover { color: var(--accent-d); }
.index b { font-weight: 600; }
.index span { color: var(--grey); font-variant-numeric: tabular-nums; }

/* публикации списком */
.lib { display: grid; gap: 10px; }
.lib li { display: grid; grid-template-columns: 40px 1fr; gap: 0 10px; padding: 18px 22px; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); }
.lib h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.02em; margin: 6px 0 4px; }
.lib h3 a:hover { color: var(--accent-d); }
.lib p { font-size: 13.5px; color: var(--grey); }
.lib .tx { font-size: 14.5px; color: var(--ink); margin-top: 8px; max-width: 76ch; line-height: 1.58; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Index Media SI: страница ответов ---------- */
.ai { max-width: 900px; padding-top: 48px; padding-bottom: 36px; }
.ai h1 { font-size: clamp(32px, 4.6vw, 54px); }
.ai .sub { color: var(--grey); }
.ai .lead { margin-top: 18px; color: var(--grey); max-width: 58ch; }
.thread { margin-top: 28px; display: grid; gap: 14px; }
.qa { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); padding: 24px 26px 26px; }
.qa.last { animation: fade .5s; }
.qa h2 { font-size: clamp(19px, 2vw, 23px); line-height: 1.25; }
.qa h2 span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); margin-bottom: 8px; }
.qa .a { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hair); }
.qa .a p { font-size: 16px; line-height: 1.62; margin-top: 10px; max-width: 70ch; }
.qa .a p a { color: var(--accent-d); font-weight: 500; }
.qa .a p a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ans { margin: 12px 0 4px; counter-reset: n; }
.ans li { counter-increment: n; position: relative; padding: 12px 0 12px 38px; border-top: 1px solid var(--hair); font-size: 15.5px; line-height: 1.42; }
.ans li::before { content: counter(n); position: absolute; left: 0; top: 12px; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; background: color-mix(in srgb, var(--jc, var(--accent)) 14%, #fff); color: var(--jd, var(--accent-d)); }
.ans li > a { font-weight: 600; }
.ans li > a:hover { color: var(--accent-d); }
.ans span { display: block; font-size: 13px; color: var(--grey); margin-top: 3px; }
.ans q { display: block; quotes: none; margin-top: 8px; padding-left: 12px; border-left: 2px solid var(--jc, var(--accent)); font-size: 14px; line-height: 1.55; color: #3B4352; }
.lab.mat { margin-top: 22px; }
.srcs { margin-top: 18px; }
.srcs ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.srcs a { display: block; font-size: 13px; font-weight: 500; padding: 5px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--hair); transition: border-color .2s; }
.srcs a:hover { border-color: var(--accent); }
.disc { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--grey); margin-top: 12px; }

/* ---------- подвал ---------- */
.footer { margin-top: 88px; background: var(--night); color: #fff; padding: 30px 0 28px; position: relative; }
.footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--stripe); }
.footer .wrap { display: grid; grid-template-columns: auto 1fr; gap: 10px 40px; align-items: center; }
.footer .logo { font-size: 20px; }
.fc { display: flex; flex-wrap: wrap; gap: 6px 26px; justify-content: flex-end; font-size: 14.5px; font-weight: 500; }
.fc a { transition: color .2s; }
.fc a:hover { color: var(--accent); }
.fc a:last-child { color: #8892A4; font-weight: 400; }
.footer p { grid-column: 1 / -1; font-size: 12.5px; color: #6F7A8D; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- кнопки «назад» и «поделиться»: под большой палец правой руки ---------- */
.fab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 80; display: grid; gap: 10px; }
.fab button { width: 50px; height: 50px; border-radius: 50%; background: var(--night); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px -10px rgba(10,14,21,.7); border: 1.5px solid #2B3445; transition: transform .2s, background .2s, opacity .25s; }
.fab button:hover { background: var(--accent-d); border-color: var(--accent-d); }
.fab button:active { transform: scale(.93); }
.fab svg { width: 22px; height: 22px; }
.fab .back { width: 56px; height: 56px; margin-left: -3px; }
.fab.home .back { display: none; }
body.menu-open .fab { opacity: 0; pointer-events: none; }

/* ---------- корзина, чтение, уведомление ---------- */
.scrim { position: fixed; inset: 0; background: rgba(10,14,21,.55); z-index: 130; opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--bg); z-index: 140; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s .3s; display: flex; flex-direction: column; }
.drawer.on { transform: none; visibility: visible; transition-delay: 0s; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--hair); }
.drawer h3 { font-size: 24px; }
.drawer .body { flex: 1; overflow: auto; padding: 0 24px; }
.drawer footer { padding: 20px 24px; border-top: 1px solid var(--hair); display: grid; gap: 14px; }
.citem { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.citem b { display: block; font-weight: 600; }
.citem span { color: var(--grey); font-size: 14px; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 14px; color: var(--grey); }
.total b { font-size: 24px; font-weight: 700; color: var(--ink); }
.reader { position: fixed; inset: 0; z-index: 140; background: var(--bg); overflow: auto; opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.reader.on { opacity: 1; visibility: visible; transition-delay: 0s; }
.reader .bar { position: sticky; top: 0; background: var(--bg); border-bottom: 1px solid var(--hair); display: flex; justify-content: space-between; align-items: center; padding: 0 var(--pad); height: 58px; z-index: 2; }
.reader .bar span { display: flex; gap: 22px; }
.reader .paper { padding-top: 40px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-s); font-size: 14px; font-weight: 500; z-index: 200; opacity: 0; transition: opacity .25s; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.toast.on { opacity: 1; }
.adm-note { position: fixed; left: 16px; bottom: 16px; z-index: 70; background: var(--ink); color: #fff; font-size: 12.5px; padding: 9px 14px; border-radius: var(--r-s); max-width: min(380px, calc(100vw - 100px)); }
.adm-note a { text-decoration: underline; text-underline-offset: 3px; }
#app.pg { animation: page .3s ease-out; }
@keyframes page { from { opacity: 0; transform: translateY(8px); } }
body.feed-mode #app.pg { animation: none; }

/* ================= публикации: листание ================= */
body.feed-mode { overflow: hidden; background: var(--night); }
body.feed-mode .footer { display: none; }
.feed { position: fixed; inset: var(--header-h) 0 0 0; background: var(--night); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.feed .lab { color: #8892A4; }
.ftop { display: none; }
.fside { padding: 40px var(--pad); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; min-width: 0; overflow: auto; scrollbar-width: none; }
.fside h1 { font-size: 40px; }
.fside p { color: #A9B4C6; font-size: 14.5px; max-width: 30ch; }
.fside.r { justify-content: center; padding-right: 96px; }
.feed .radio { background: var(--night2); }
.feed .radio button { color: #A9B4C6; }
.feed .radio button.on { background: #fff; color: var(--ink); }
.feed .sel { color: #8892A4; }
.feed .sel select { background-color: var(--night2); border-color: var(--line); color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.feed .sel option { color: #111; }
.reels { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.reels::-webkit-scrollbar { display: none; }
.reel { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; padding: 22px 0; display: grid; place-items: center; }
.rcard { height: 100%; aspect-ratio: 9/16; max-width: 100vw; position: relative; overflow: hidden; border-radius: 22px; background: linear-gradient(165deg, color-mix(in srgb, var(--c) 82%, #000), color-mix(in srgb, var(--c2, var(--c)) 70%, #000) 55%, #0A0E15); user-select: none; -webkit-user-select: none; touch-action: pan-y; container-type: inline-size; box-shadow: 0 30px 70px -40px var(--c); }
.rpic { position: absolute; inset: 0 0 42% 0; background-size: 260%; background-repeat: no-repeat; opacity: .9; mask-image: linear-gradient(180deg, #000 45%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent); }
.segs { position: absolute; top: 16px; left: 20px; right: 20px; display: flex; gap: 5px; z-index: 4; }
.segs span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.28); overflow: hidden; }
.segs span i { display: block; height: 100%; width: 0; background: #fff; border-radius: 3px; }
.rno { position: absolute; top: 32px; left: 20px; z-index: 4; font-size: 13px; font-weight: 700; padding: 4px 9px; border-radius: 8px; background: rgba(0,0,0,.28); backdrop-filter: blur(6px); font-variant-numeric: tabular-nums; }
.rno span { font-weight: 500; opacity: .7; }
.slide { position: absolute; inset: 0; padding: 84px 22px 152px; display: flex; flex-direction: column; justify-content: flex-end; opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .5s cubic-bezier(.2,.8,.2,1); pointer-events: none; z-index: 2; overflow: hidden; }
.slide.on { opacity: 1; transform: none; }
.slide .lab { color: rgba(255,255,255,.82); margin-bottom: 12px; }
.slide h2 { font-size: clamp(23px, 7.6cqw, 34px); line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.slide h2.long { font-size: clamp(19px, 6cqw, 26px); line-height: 1.16; }
.slide h2.xlong { font-size: clamp(16px, 4.8cqw, 20px); line-height: 1.2; letter-spacing: -.015em; }
.slide .au { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.25); font-size: 13.5px; color: rgba(255,255,255,.82); line-height: 1.45; }
.slide .tx { font-size: clamp(15px, 4.4cqw, 17.5px); line-height: 1.52; font-weight: 500; }
.slide .tx.long { font-size: clamp(13.5px, 3.9cqw, 15.5px); }
.slide .qt { font-size: clamp(20px, 6.2cqw, 27px); line-height: 1.26; font-weight: 700; letter-spacing: -.025em; }
.slide .muted { color: rgba(255,255,255,.6); }
.tapz { position: absolute; inset: 0; z-index: 3; display: grid; grid-template-columns: 32% 68%; }
.rfoot { position: absolute; left: 20px; right: 20px; bottom: 22px; z-index: 5; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.rfoot .btn { grid-column: 1 / -1; }
.rfoot .tbtn { justify-self: start; color: rgba(255,255,255,.9); }
.rfoot .tbtn:last-child { justify-self: end; }
.queue { display: grid; gap: 8px; max-width: 320px; width: 100%; }
.queue button { text-align: left; padding: 12px 14px; border-radius: 12px; background: var(--night2); border: 1px solid var(--line); font-size: 14px; font-weight: 500; line-height: 1.35; color: #C7CFDB; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: border-color .2s, color .2s; }
.queue button:hover { color: #fff; border-color: var(--accent); }
.queue .lab { display: block; margin-bottom: 4px; font-size: 11px; }
.fnav { display: flex; gap: 22px; }
.coach { position: absolute; inset: 0; z-index: 20; background: rgba(10,14,21,.9); display: grid; place-content: center; justify-items: center; gap: 24px; text-align: center; padding: 30px; }
.coach p { font-size: 21px; font-weight: 600; line-height: 1.45; letter-spacing: -.015em; }

/* ================= мобильная версия ================= */
@media (max-width: 1100px) {
  .jcards { grid-template-columns: repeat(3, 1fr); }
  .issue { grid-template-columns: 250px 1fr; gap: 28px; }
  .index { columns: 2; }
  .fside.r { display: none; }
  .feed { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 860px) {
  :root { --header-h: 60px; --pad: 18px; }
  .logo { font-size: 20px; }
  .hero { padding: 44px 0 72px; }
  .ask { height: 56px; padding: 0 6px 0 16px; margin-top: 26px; }
  .ask input { font-size: 16px; padding: 0 12px; }
  .ask .btn { height: 44px; padding: 0 16px; }
  .quick { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: -36px; }
  .quick a { padding: 14px; grid-template-columns: 1fr; gap: 8px; }
  .quick svg { grid-row: auto; width: 38px; height: 38px; padding: 8px; }
  .quick b { font-size: 15.5px; } .quick span { font-size: 12.5px; margin-top: -6px; }
  .sec { padding-top: 54px; }
  .phead { padding-top: 26px; padding-bottom: 18px; }
  .news, .pubs { grid-template-columns: 1fr; gap: 12px; }
  .news article:first-child { grid-template-columns: 104px 1fr; gap: 16px; padding: 18px; align-items: start; }
  .news .row .price { font-size: 19px; }
  .mini li:nth-child(n+3) { display: none; }
  .jcards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 12px; scrollbar-width: none; gap: 10px; }
  .jcards::-webkit-scrollbar { display: none; }
  .jcards a { flex: 0 0 44%; scroll-snap-align: start; }
  .ev { grid-template-columns: 72px 1fr; gap: 10px 14px; padding: 16px; }
  .ev .d b { font-size: 17px; }
  .ev .btn { grid-column: 2; justify-self: start; }
  .facts, .contacts { grid-template-columns: 1fr; gap: 10px; }
  .facts li { display: flex; align-items: baseline; gap: 12px; padding: 14px 18px; } .facts b { font-size: 26px; }
  .find { flex-direction: column; }
  .find.big input { height: 50px; font-size: 16px; } .find.big .btn { height: 48px; }
  .arts { padding: 2px 16px; }
  .art { grid-template-columns: 38px 1fr; }
  .art .t { font-size: 15.5px; }
  .jlist a { grid-template-columns: 64px 1fr; gap: 16px; padding: 16px; align-items: start; }
  .jlist img { width: 64px; } .jlist em { display: none; }
  .issues { padding: 2px 16px; }
  .issues a { grid-template-columns: 54px 1fr auto; gap: 2px 12px; }
  .issues a span:nth-of-type(2) { display: none; }
  .issues em { grid-column: 2 / -1; text-align: left; }
  .issue { grid-template-columns: 1fr; gap: 20px; }
  .issue aside { position: static; grid-template-columns: 96px 1fr; gap: 6px 16px; align-items: start; }
  .issue aside img { width: 96px; grid-row: 1 / 4; }
  .issue aside dl, .issue aside .btn, .issue aside > .lnk { grid-column: 1 / -1; }
  .issue h1 { font-size: 24px; }
  .letter { grid-template-columns: 40px 1fr; } .index { columns: 1; }
  .grp-h em { margin-left: 0; flex-basis: 100%; }
  .tools .lab { flex-basis: 100%; }
  .pn { grid-template-columns: 1fr; } .pn a:last-child { text-align: left; } .pn a:last-child .lab { justify-content: flex-start; }
  .people .lnk { margin-left: 0; }
  .lib li { grid-template-columns: 30px 1fr; padding: 16px; }
  .qa { padding: 18px 16px 20px; }
  .ai { padding-top: 30px; }
  .footer { margin-top: 60px; padding-bottom: 96px; }
  .footer .wrap { grid-template-columns: 1fr; gap: 14px; }
  .fc { justify-content: flex-start; flex-direction: column; gap: 8px; }
  .menu li a { flex-direction: column; gap: 2px; align-items: flex-start; }
  .menu li em { text-align: left; font-size: 13.5px; }
  .menu li b { font-size: clamp(28px, 8.4vw, 38px); }
  /* листание — на весь экран */
  .feed { display: block; }
  .fside { display: none; }
  .ftop { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: absolute; top: 0; left: 0; right: 0; z-index: 10; padding: 10px 16px; height: 56px; background: var(--night); }
  .ftop .sel span { display: none; }
  .ftop .sel select { max-width: 150px; }
  .reel { padding: 56px 0 0; }
  .rcard { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 18px 18px 0 0; }
  .rfoot { right: 86px; bottom: 20px; }
  .slide { padding: 80px 20px 146px; }
  body.feed-mode .fab { bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 600px) { .ask .btn span { display: none; } .ask .btn i { display: block; } .ask .btn { width: 44px; padding: 0; } }
@media (max-height: 720px) { .slide h2 { font-size: clamp(20px, 6.6cqw, 28px); } .slide h2.long { font-size: clamp(17px, 5.2cqw, 22px); } .slide h2.xlong { font-size: clamp(14px, 4.2cqw, 17px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (max-width: 860px) { .sub { font-size: clamp(12.5px, 3.7vw, 15px); white-space: nowrap; } .ai .sub { white-space: normal; } }

/* ================= версия 8: ближе к строгому варианту =================
   Меньше карточек и цвета, больше линеек. Скругления небольшие. */
:root { --r: 8px; --r-s: 6px; }
h1, h2, h3 { letter-spacing: -.022em; }
.sh { border-bottom: 1px solid var(--ink); padding-bottom: 14px; margin-bottom: 0; }
.sh h2 { font-size: clamp(24px, 2.6vw, 32px); }
.sh + .news, .sh + .jcards { margin-top: 20px; }
.quick a { box-shadow: none; }
.quick svg { background: none; padding: 0; width: 28px; height: 28px; color: var(--ink); align-self: center; }
.quick a { grid-template-columns: 28px 1fr; }
.tag { border-radius: 4px; background: none; border: 1px solid var(--jd, var(--ink)); color: var(--jd, var(--ink)); height: 24px; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }

/* новинки */
.news article:first-child { background: var(--card); border-top: 3px solid var(--jc); }
.newpub { padding: 26px; border-top: 3px solid var(--jc) !important; display: flex; flex-direction: column; align-items: flex-start; }
.newpub h3 { font-size: clamp(20px, 2vw, 25px); line-height: 1.2; margin: 14px 0 8px; }
.newpub h3 a:hover { color: var(--accent-d); }
.newpub .tx { font-size: 15px; line-height: 1.6; margin: 12px 0 18px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.newpub .lnk { margin-top: auto; }

/* публикации на главной и списком: строки с линейками */
.publist li, .lib li { display: grid; grid-template-columns: 44px 1fr auto; gap: 0 14px; align-items: center; padding: 20px 0; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; background: none; cursor: pointer; transition: padding .25s; }
.lib li { grid-template-columns: 44px 1fr; align-items: start; cursor: default; }
.lib { gap: 0; }
.publist li:hover { padding-left: 8px; }
.publist .pg, .lib .pg { font-size: 13px; font-weight: 700; color: var(--grey); align-self: start; padding-top: 3px; }
.publist h3, .lib h3 { font-size: 18px; line-height: 1.3; margin: 7px 0 5px; }
.publist li:hover h3 { color: var(--accent-d); }
.publist p { font-size: 13.5px; color: var(--grey); }
.publist .th { width: 104px; height: 70px; border-radius: var(--r-s); background-size: 300%; background-repeat: no-repeat; filter: saturate(.85); }
.lib .tx { -webkit-line-clamp: 2; }

/* каталог и мероприятия спокойнее */
.jcards a { padding: 12px 12px 16px; }
.jc { background: var(--bg); border-radius: var(--r-s); }
.jcards a:hover { border-color: var(--ink); }
.evs { gap: 0; border-top: 0; }
.ev { background: none; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; padding: 20px 0; }
.ev .d { background: none; text-align: left; padding: 0; }
.ev .d b { color: var(--ink); font-size: 22px; }
.jlist a:hover, .pubcard:hover { box-shadow: none; }
.facts li, .contacts li { border-radius: var(--r); }
.contacts svg { background: none; padding: 0; width: 26px; height: 26px; color: var(--ink); }
.contacts li { grid-template-columns: 26px 1fr; }
.facts b { color: var(--ink); }
.plist span, .names a, .kw, .srcs a { border-radius: 4px; }

/* листание: тёмная строгая карточка, цвет журнала — тонкой линией */
.rcard { background: var(--night2); border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 10px; box-shadow: none; }
.rno { background: none; backdrop-filter: none; padding: 0; top: 36px; font-size: 14px; color: #A9B4C6; }
.segs { top: 18px; }
.segs span { height: 2px; background: #2C3546; }
.slide .lab { color: #A9B4C6; }
.slide .lab::before { content: ''; width: 9px; height: 9px; border-radius: 2px; background: var(--c); }
.slide .au { border-top-color: var(--line); color: #A9B4C6; }
.slide .tx { font-weight: 400; color: #E6EAF0; }
.rfoot .tbtn { color: #C7CFDB; }
.queue button { border-radius: var(--r); }

@media (max-width: 860px) {
  .publist li { grid-template-columns: 30px 1fr; }
  .publist .th { display: none; }
  .lib li { grid-template-columns: 30px 1fr; padding: 18px 0; }
  .ev { padding: 18px 0; }
  .rcard { border-radius: 10px 10px 0 0; border-left: 0; border-right: 0; }
  .newpub { padding: 20px 18px; }
}

/* плиток под первым экраном больше нет */
.hero { padding-bottom: clamp(56px, 10vh, 104px); }
.hero + .sec { padding-top: 56px; }
@media (max-width: 860px) { .hero { padding-bottom: 48px; } .hero + .sec { padding-top: 40px; } }

.tag { white-space: nowrap; }
@media (max-width: 400px) { .tag { font-size: 10.5px; padding: 0 7px; letter-spacing: .02em; } }

/* меню: крупные названия, подпись под ними мелкими прописными, стрелка при наведении */
.menu .wrap { padding-top: 3vh; }
.menu li a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: clamp(16px, 2.8vh, 30px) 0; }
.menu li a > div { display: grid; gap: 10px; }
.menu li b { font-size: clamp(34px, 5.4vw, 64px); font-weight: 600; letter-spacing: -.045em; line-height: 1; color: #F2F5F9; }
.menu li b i { font-style: normal; color: var(--accent); }
.menu li em { display: flex; align-items: center; gap: 10px; text-align: left; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #7C879B; transition: color .3s; }
.menu li em::before { content: ''; width: 18px; height: 1.5px; background: var(--accent); flex: none; transition: width .4s cubic-bezier(.2,.7,.2,1); }
.menu li a > svg { width: 34px; height: 34px; color: var(--accent); opacity: 0; transform: translateX(-16px); transition: opacity .3s, transform .45s cubic-bezier(.2,.7,.2,1); }
.menu li a:hover b { color: #fff; transform: translateX(8px); }
.menu li a:hover em { color: #C7CFDB; }
.menu li a:hover em::before { width: 34px; }
.menu li a:hover > svg, .menu li a.on > svg { opacity: 1; transform: none; }
.menu li a.on b { color: var(--accent); }
.menu li a.on b i { color: #fff; }
@media (max-width: 860px) {
  .menu li a { flex-direction: initial; gap: 14px; padding: 20px 0; }
  .menu li b { font-size: clamp(32px, 9.6vw, 42px); }
  .menu li em { font-size: 11px; letter-spacing: .12em; }
  .menu li a > svg { width: 26px; height: 26px; }
}

/* «поделиться» видна только там, где есть чем делиться: статья, выпуск, журнал */
.fab.noshare [data-act=hshare] { display: none; }

/* «назад» — в шапке слева от логотипа: ничего не закрывает; на главной скрыта */
.hleft { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hback { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1.5px solid #3A4456; display: grid; place-items: center; color: #fff; transition: border-color .2s, background .2s, width .3s, margin .3s, opacity .2s; }
.hback:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.hback svg { width: 20px; height: 20px; }
body.at-home .hback, body.menu-open .hback { width: 0; margin-right: -14px; border-width: 0; opacity: 0; pointer-events: none; overflow: hidden; }
@media (max-width: 860px) { .hleft { gap: 10px; } .hback { width: 38px; height: 38px; } body.at-home .hback, body.menu-open .hback { margin-right: -10px; } .logo { font-size: 19px; } }
@media (max-width: 370px) { .logo { font-size: 17px; } }

.tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 22px; }
.news article:first-child > div { min-width: 0; }
@media (max-width: 360px) { .news article:first-child { grid-template-columns: 88px 1fr; gap: 12px; padding: 14px; } .tag { font-size: 10px; padding: 0 6px; letter-spacing: 0; } }

/* ================= версия 9: правки издателя ================= */
/* один цвет — синий из логотипа; цвета журналов как акценты убраны */
[style*="--jc"] { --jc: var(--accent) !important; --jc2: var(--accent-d) !important; --jd: var(--accent-d) !important; }
.rcard { --c: #0F7FB3 !important; --c2: #0B3F5C !important; }
.mk { display: none !important; }
.footer::before { display: none; }

/* логотип: одним словом, точка белая, «pro» синим */
.logo span { color: var(--accent); }

/* меню: заголовки немного меньше, Index Media SI целиком синим */
.menu li b { font-size: clamp(28px, 4.4vw, 52px); }
.menu li b i, .menu li a.on b i { color: var(--accent); }
@media (max-width: 860px) { .menu li b { font-size: clamp(27px, 8vw, 36px); } }

/* первый экран: название, поле вопроса, подпись, вход */
.hero h1, .ai h1 { color: var(--accent); }
.ask { height: 60px; padding: 0 8px 0 24px; gap: 4px; border-radius: 30px; }
.ask input { padding: 0 8px 0 0; }
.ask .mic, .ask .send { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; transition: background .2s, color .2s, transform .15s; }
.ask .mic { color: #5B6677; }
.ask .mic:hover { background: var(--bone); color: var(--ink); }
.ask .mic.on { background: var(--accent); color: #fff; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 22%, transparent); } }
.ask .send { background: var(--accent); color: #fff; }
.ask .send:hover { background: var(--accent-d); }
.ask .send:active { transform: scale(.94); }
.ask svg { width: 21px; height: 21px; color: inherit; }
.ask.light { border-radius: 30px; }
.hero .sub, .ai .sub { margin-top: 22px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: normal; text-wrap: balance; }
.hero .sub { color: #B4BECE; }
.btn.enter { margin-top: 22px; min-width: 190px; height: 48px; text-transform: uppercase; letter-spacing: .1em; font-size: 13.5px; }
.who { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; }
.hero .who { margin-top: 22px; color: #C7CFDB; }
.hero .who .tbtn { color: #fff; }
.ai .sub { margin-top: 12px; }
.ai .btn.enter { margin-top: 20px; }
@media (max-width: 860px) { .ask { height: 54px; padding: 0 6px 0 20px; } .ask .mic, .ask .send { width: 42px; height: 42px; } .hero .sub, .ai .sub { font-size: 11.5px; letter-spacing: .12em; } }

/* окно входа и регистрации */
.auth { position: fixed; left: 50%; top: 50%; z-index: 150; width: min(400px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; background: #fff; color: var(--ink); border-radius: var(--r); padding: 30px 28px 26px; box-shadow: 0 30px 80px -30px rgba(10,14,21,.6); transform: translate(-50%, -46%); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s cubic-bezier(.2,.7,.2,1), visibility 0s .3s; }
.auth.on { opacity: 1; transform: translate(-50%, -50%); visibility: visible; transition-delay: 0s; }
.auth h3 { font-size: 24px; letter-spacing: -.02em; color: var(--accent-d); padding-right: 30px; }
.auth .x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; font-size: 24px; line-height: 1; color: var(--grey); }
.auth .x:hover { background: var(--bone); color: var(--ink); }
.auth form { display: grid; gap: 12px; margin-top: 20px; }
.auth form > input { height: 48px; padding: 0 16px; border: 1.5px solid var(--hair); border-radius: var(--r-s); font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
.auth form > input:focus { outline: 0; border-color: var(--accent); }
.auth .btn { height: 48px; width: 100%; text-transform: uppercase; letter-spacing: .08em; font-size: 13.5px; }
.auth .btn:not(.solid) { border-color: var(--accent-d); color: var(--accent-d); }
.auth .btn[disabled] { opacity: .6; pointer-events: none; }
.arow { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13.5px; }
.arow label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.arow input { width: 17px; height: 17px; accent-color: var(--accent-d); }
.arow .tbtn { font-size: 13.5px; color: var(--accent-d); }
.amsg { margin-top: 12px; font-size: 14px; line-height: 1.5; color: #3B4352; }
.aerr { font-size: 13.5px; line-height: 1.45; color: #B3261E; }
.aerr:empty { display: none; }
.ademo { margin-top: 14px; font-size: 12.5px; color: var(--grey); }

/* корзина: количество, удаление, крупный итог */
.citem { gap: 12px; }
.citem > div:first-child { flex: 1; min-width: 0; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--hair); border-radius: var(--r-s); flex: none; }
.qty button { width: 36px; height: 36px; font-size: 19px; line-height: 1; color: var(--ink); transition: background .2s; }
.qty button:hover { background: var(--bone); }
.qty button[disabled] { color: #B5BDCA; pointer-events: none; }
.qty i { min-width: 24px; text-align: center; font-style: normal; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.citem .del { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--grey); transition: background .2s, color .2s; }
.citem .del:hover { background: #FBEDEC; color: #B3261E; }
.citem .del svg { width: 20px; height: 20px; }
.total { align-items: baseline; }
.total b { font-size: 24px; font-weight: 700; color: var(--ink); }

/* подвал */
.footer { padding: 44px 0 26px; }
.footer .wrap { grid-template-columns: 1fr auto; gap: 30px 60px; align-items: start; }
.f-main { display: grid; gap: 18px; justify-items: start; }
.footer .logo { font-size: 22px; }
.fc { justify-content: flex-start; align-items: center; gap: 10px 24px; }
.fc a:last-child { color: inherit; font-weight: 500; }
.soc { display: inline-flex; gap: 10px; }
.soc a { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #3A4456; display: grid; place-items: center; color: #fff !important; transition: border-color .2s, background .2s; }
.soc a:hover { border-color: var(--accent); background: var(--accent); }
.soc svg { width: 19px; height: 19px; }
.footer address { font-style: normal; font-size: 13.5px; line-height: 1.65; color: #8E99AC; max-width: 64ch; }
.f-nav { display: grid; gap: 12px; justify-items: end; text-align: right; font-size: 15px; font-weight: 500; }
.f-nav a { transition: color .2s; }
.f-nav a:hover { color: var(--accent); }
.footer p.copy { grid-column: 1 / -1; font-size: 12.5px; color: #6F7A8D; padding-top: 18px; border-top: 1px solid var(--line); }

/* нижняя панель, как в приложении: домой, поделиться, назад */
:root { --tab-h: 60px; }
.tabbar { position: fixed; z-index: 100; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--night); color: #fff; }
.tabbar button { display: grid; justify-items: center; align-content: center; gap: 4px; color: #C7CFDB; transition: color .2s, background .2s; }
.tabbar button:hover { color: #fff; }
.tabbar button:active { color: var(--accent); }
.tabbar svg { width: 23px; height: 23px; }
.tabbar span { font-size: 10.5px; font-weight: 500; letter-spacing: .02em; }
@media (min-width: 861px) {
  .tabbar { right: 22px; bottom: 22px; border-radius: 10px; border: 1px solid #2B3445; box-shadow: 0 14px 34px -14px rgba(10,14,21,.75); overflow: hidden; }
  .tabbar button { width: 58px; height: 52px; }
  .tabbar button + button { border-left: 1px solid #232B3A; }
  .tabbar button:hover { background: #151B26; }
  .tabbar span { display: none; }
  .fside.r { padding-right: var(--pad); padding-bottom: 96px; }
}
@media (max-width: 860px) {
  .tabbar { left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); border-top: 1px solid #232B3A; }
  .footer { padding: 34px 0 calc(var(--tab-h) + 26px + env(safe-area-inset-bottom, 0px)); }
  .footer .wrap { grid-template-columns: 1fr; gap: 26px; }
  .fc { flex-direction: column; align-items: flex-start; gap: 10px; }
  .f-nav { justify-items: start; text-align: left; grid-template-columns: 1fr 1fr; gap: 12px 20px; padding-top: 22px; border-top: 1px solid var(--line); }
  .feed { bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); }
  .rfoot { right: 20px; }
  .toast { bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom, 0px)); }
  .adm-note { bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom, 0px)); max-width: calc(100vw - 32px); }
}

/* ================= версия 10 ================= */
/* заголовки разделов на главной — капсом; варианты для выбора: ?h=2 и ?h=3 */
.sh h2 { text-transform: uppercase; }
.hv1 .sh h2 { font-size: clamp(19px, 2vw, 24px); font-weight: 700; letter-spacing: .05em; }
.hv2 .sh { border-bottom-color: var(--hair); align-items: center; }
.hv2 .sh h2 { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; letter-spacing: .18em; }
.hv2 .sh h2::before { content: ''; width: 26px; height: 2px; background: var(--accent); }
.hv3 .sh { border-bottom: 0; padding-bottom: 4px; }
.hv3 .sh h2 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 500; letter-spacing: .02em; }
.sh .lnk { text-transform: none; }

/* новинки без заголовка; «Новый выпуск» стоит так же, как «Новая публикация» */
.hero + .sec { padding-top: 40px; }
.news article.newiss { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 26px; }
.ni { display: grid; grid-template-columns: 170px 1fr; gap: 26px; align-items: center; width: 100%; margin-top: 16px; }
.ni > div { min-width: 0; }
.ni h3 { margin-top: 0; }
@media (max-width: 860px) { .news article.newiss { padding: 18px; } .ni { grid-template-columns: 104px 1fr; gap: 16px; align-items: start; } }

/* каталог: обложка без подложки, название капсом, описание */
.jgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 34px 26px; margin-top: 26px; }
.jgrid a { display: grid; align-content: start; gap: 6px; }
.jgrid img { width: 100%; border-radius: 3px; box-shadow: 0 14px 30px -16px rgba(16,20,27,.6); margin-bottom: 12px; transition: transform .3s; }
.jgrid a:hover img { transform: translateY(-4px); }
.jgrid b { font-size: 15px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1.3; transition: color .2s; }
.jgrid a:hover b { color: var(--accent-d); }
.jgrid p { font-size: 13.5px; line-height: 1.5; color: var(--grey); }
.jgrid span { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.jgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.jgrid.two a { grid-template-columns: 200px 1fr; column-gap: 28px; align-content: center; }
.jgrid.two img { grid-row: 1 / 5; margin: 0; }
.jgrid.two b { align-self: end; font-size: 19px; }
.jgrid.two p { font-size: 15px; }
.jgrid.two span { align-self: start; }
.issue h1, .phead h1.jn { text-transform: uppercase; letter-spacing: .01em; }
@media (max-width: 1100px) { .jgrid { grid-template-columns: repeat(3, 1fr); } .jgrid.two a { grid-template-columns: 150px 1fr; } }
@media (max-width: 860px) {
  .jgrid, .jgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; margin-top: 20px; }
  .jgrid.two a { grid-template-columns: 1fr; }
  .jgrid.two img { grid-row: auto; margin-bottom: 12px; }
  .jgrid.two b { font-size: 15px; } .jgrid.two p { font-size: 13.5px; }
}

/* акции */
.promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 20px; }
.promos article { background: var(--card); border: 1px solid var(--hair); border-top: 3px solid var(--accent); border-radius: var(--r); padding: 24px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.promos h3 { font-size: clamp(19px, 2vw, 23px); line-height: 1.25; margin-top: 4px; }
.promos p { font-size: 15px; line-height: 1.6; color: #3B4352; white-space: pre-line; }

/* шапка: поиск рядом с корзиной */
@media (max-width: 400px) { .hbtns { gap: 8px; } .hbtns .cartbtn, .hbtns .burger { width: 38px; height: 38px; } }
@media (max-width: 350px) { .logo { font-size: 16px; } }

/* нижние кнопки — овалом */
.tabbar { border-radius: 999px; border: 1px solid #2B3445; box-shadow: 0 14px 34px -14px rgba(10,14,21,.75); overflow: hidden; }
body.reading .tabbar { z-index: 145; }
.reader .bar { justify-content: flex-end; }
@media (min-width: 861px) { .tabbar { border-radius: 999px; padding: 0 6px; } .tabbar button + button { border-left: 0; } .tabbar button:hover { background: none; } }
@media (max-width: 860px) {
  :root { --tab-h: 78px; }
  .tabbar { left: 50%; right: auto; transform: translateX(-50%); width: min(330px, calc(100vw - 32px)); height: 58px; padding: 0 8px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #2B3445; }
  .reader { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- версия 11 ---------- */
/* обложки без серой подложки и без тени-пятна под ними */
.jgrid img { box-shadow: none; outline: 1px solid rgba(16,20,27,.1); outline-offset: -1px; border-radius: 2px; }
/* две обложки на главной — на всю ширину */
.jgrid.two { gap: 48px; }
.jgrid.two a { grid-template-columns: minmax(0, 46%) 1fr; column-gap: 32px; }
.jgrid.two b { font-size: 22px; }
.jgrid.two p { font-size: 16px; }
.jgrid.two span { font-size: 15px; margin-top: 8px; }
@media (max-width: 860px) { .jgrid.two { gap: 28px 16px; } .jgrid.two a { grid-template-columns: 1fr; } .jgrid.two b { font-size: 15px; } .jgrid.two p { font-size: 13.5px; } .jgrid.two span { font-size: 13px; margin-top: 2px; } }

/* акция в верхнем блоке главной */
.news article.promo { grid-column: 1 / -1; display: grid; border-top: 3px solid var(--accent); }
.news article.promo.pic { grid-template-columns: minmax(0, 38%) 1fr; }
.news article.promo img { width: 100%; height: 100%; max-height: 300px; object-fit: cover; display: block; }
.news article.promo > div { padding: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.news article.promo h3 { margin: 4px 0 0; }
.news article.promo p { font-size: 15.5px; line-height: 1.6; color: #3B4352; white-space: pre-line; }
.news article.promo .tag { border-color: var(--accent-d); color: var(--accent-d); }
@media (max-width: 860px) { .news article.promo.pic { grid-template-columns: 1fr; } .news article.promo img { max-height: 200px; } .news article.promo > div { padding: 18px; } }

/* ================= версия 12: движение ================= */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .6s ease var(--d, 0ms), transform .75s cubic-bezier(.2,.7,.2,1) var(--d, 0ms) !important; }
.rv.in { opacity: 1; transform: none; }

/* первый экран: строки появляются по очереди, фон медленно дышит */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.hero .wrap > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero .wrap > :nth-child(2) { animation-delay: .1s; }
.hero .wrap > :nth-child(3) { animation-delay: .2s; }
.hero .wrap > :nth-child(4) { animation-delay: .3s; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.09) translateY(-1.5%); } }
.hero::before { animation: drift 36s ease-in-out infinite alternate; }

/* поле вопроса */
.ask { transition: box-shadow .3s, transform .3s; }
.ask:focus-within { outline: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent), 0 18px 50px -20px rgba(0,0,0,.7); transform: translateY(-1px); }
.ask .send svg { transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.ask .send:hover svg { transform: translateY(-3px); }

/* кнопки и ссылки */
.btn { transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .25s; }
.btn.solid:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px var(--accent-d); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.lnk:hover svg { transform: translateX(5px); }
.cartbtn:active, .burger:active { transform: scale(.92); }
.cartbtn, .burger { transition: border-color .2s, background .2s, transform .15s; }

/* карточки */
.news article, .promos article { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.news article:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -30px rgba(16,20,27,.55); }
.jgrid img { transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.jgrid a:hover img { transform: translateY(-8px); box-shadow: 0 26px 36px -22px rgba(16,20,27,.6); }
.publist .th { transition: transform .4s cubic-bezier(.2,.7,.2,1), filter .3s; }
.publist li:hover .th { transform: scale(1.05); filter: none; }
.art details[open] .abs { animation: rise .35s ease both; }

/* корзина, уведомление, нижние кнопки */
@keyframes pop { 40% { transform: scale(1.45); } }
.cart-n.pop { animation: pop .4s ease; }
.citem { animation: rise .3s ease both; }
.toast { transition: opacity .25s, transform .3s cubic-bezier(.2,.7,.2,1); transform: translate(-50%, 10px); }
.toast.on { transform: translate(-50%, 0); }
@keyframes tabin { from { opacity: 0; translate: 0 24px; } }
.tabbar { animation: tabin .6s cubic-bezier(.2,.7,.2,1) .25s both; }
.tabbar svg { transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.tabbar button:hover svg { transform: translateY(-2px); }
.tabbar button[data-act=hback]:hover svg { transform: translateX(-3px); }
.tabbar button:active svg { transform: scale(.86); }

/* логотип организатора в строке мероприятия: справа от текста, всегда целиком */
.ev { grid-template-columns: 96px 1fr 140px auto; }
.elogo { width: 140px; height: 64px; object-fit: contain; object-position: center; justify-self: end; mix-blend-mode: multiply; }
i.elogo { display: block; }
@media (max-width: 860px) {
  .ev { grid-template-columns: 72px 1fr auto; }
  .ev > div:nth-child(2) { grid-column: 2 / -1; }
  .ev .btn { grid-column: 2; grid-row: 2; justify-self: start; align-self: center; }
  .elogo { grid-column: 3; grid-row: 2; width: 104px; height: 44px; object-position: right center; align-self: center; }
  i.elogo { display: none; }
}

/* ================= версия 13 ================= */
/* первый экран: заголовок жирнее и ближе к строке, подпись на том же расстоянии снизу, кнопка уже */
.hero h1, .ai h1 { font-weight: 800; }
.hero .ask { margin-top: 22px; }
.hero .sub { margin-top: 22px; }
.btn.enter { min-width: 0; width: 132px; height: 44px; padding: 0; margin-top: 20px; }
@media (max-width: 860px) { .hero .ask { margin-top: 18px; } .hero .sub { margin-top: 18px; } }

/* две обложки на главной: одна высота и общий верхний край */
.jgrid img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top center; }
.jgrid.two a { align-content: start; align-items: start; grid-template-rows: auto auto auto 1fr; }
.jgrid.two b { align-self: start; padding-top: 4px; }

/* поиск */
.sres-l { margin-top: 30px; }
#sres .grp:first-of-type { margin-top: 26px; }
#sres .grp-h span { color: var(--grey); font-size: 14px; }
#sres .evs { margin-top: 6px; }
.art .pg:empty { display: none; }
#sres .art:has(.pg:empty) { grid-template-columns: 1fr; }

/* узкие телефоны: переключатели и списки в поиске не выходят за край */
@media (max-width: 480px) {
  .tools .radio { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tools .radio::-webkit-scrollbar { display: none; }
  .tools .radio button { flex: 1 0 auto; }
  .tools .sel { width: 100%; min-width: 0; }
  .tools .sel select { flex: 1; min-width: 0; max-width: 100%; }
}

/* поиск: четыре вкладки помещаются в одну строку на любом телефоне */
@media (max-width: 480px) {
  .tools .radio.four { display: grid; grid-template-columns: repeat(4, auto); width: 100%; overflow: visible; }
  .tools .radio.four button { padding: 0 4px; text-align: center; font-size: 13.5px; }
}

/* строка поиска: одно поле с кнопкой внутри, одинаково на телефоне и на компьютере */
.find.big { flex-direction: row; align-items: center; gap: 6px; height: 60px; padding: 0 6px 0 4px; background: #fff; border: 1.5px solid var(--hair); border-radius: 14px; transition: border-color .2s, box-shadow .25s; }
.find.big:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.find.big input { flex: 1 1 auto; height: 100%; border: 0; background: none; font-size: 17px; padding: 0 12px 0 16px; }
.find.big input:focus { border: 0; }
.find.big input::-webkit-search-cancel-button { -webkit-appearance: none; }
.find.big .btn { flex: none; height: 46px; padding: 0 24px; border-radius: 10px; }
@media (max-width: 860px) {
  .find.big { flex-direction: row; height: 56px; }
  .find.big input { height: 100%; font-size: 16px; padding: 0 8px 0 14px; }
  .find.big .btn { height: 44px; padding: 0 18px; }
}

/* ================= версия 14 ================= */
/* шапка — плавающая панель, как нижние кнопки */
:root { --hg: 12px; --top: calc(var(--header-h) + var(--hg) * 2); }
body { padding-top: var(--top); }
.header { position: fixed; top: var(--hg); left: var(--hg); right: var(--hg); max-width: 1320px; margin: 0 auto; border-radius: 999px; border: 1px solid #2B3445; background: rgba(10,14,21,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 16px 36px -16px rgba(10,14,21,.7); }
.header .wrap { max-width: none; padding: 0 10px 0 26px; }
.menu { padding-top: var(--top); }
.feed { top: var(--top); }
.issue aside { top: calc(var(--top) + 12px); }
.letter { scroll-margin-top: calc(var(--top) + 12px); }
@media (max-width: 860px) { :root { --hg: 10px; } .header .wrap { padding: 0 6px 0 18px; } }

/* первый экран заходит под шапку и снизу мягко растворяется в странице */
.hero { margin-top: calc(-1 * var(--top)); padding-top: calc(var(--top) + clamp(40px, 8vh, 84px)); padding-bottom: calc(clamp(56px, 10vh, 104px) + 70px);
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 150px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 150px), transparent); }
.hero + .sec { padding-top: 0; margin-top: -40px; position: relative; }
@media (max-width: 860px) { .hero { padding-top: calc(var(--top) + 34px); padding-bottom: 110px; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 100px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 100px), transparent); } .hero + .sec { margin-top: -24px; } }

/* текст из панели: абзацы, списки, ссылки, верхние и нижние индексы */
.abstract p + p, .abs p + p, .ptx p + p { margin-top: .8em; }
.abstract ul, .abstract ol, .abs ul, .abs ol, .ptx ul, .ptx ol { padding-left: 1.3em; margin: .6em 0; }
.abstract ul, .abs ul, .ptx ul { list-style: disc; } .abstract ol, .abs ol, .ptx ol { list-style: decimal; }
.abstract a, .abs a, .ptx a { color: var(--accent-d); text-decoration: underline; text-underline-offset: 3px; }
sup, sub { font-size: .72em; line-height: 0; }
.ptx { font-size: 15.5px; line-height: 1.6; color: #3B4352; }

/* ---------- Index Media AI ---------- */
.ai-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 20px; }
.ai-l h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--accent); }
.ai-l .sub { color: var(--grey); margin-top: 14px; }
.ai-l .lead { margin-top: 18px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: #3B4352; max-width: 34em; }
.ai-l .ask { margin: 26px 0 0; max-width: none; }
.ai-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.ai-cta .btn { height: 50px; padding: 0 26px; }
.free { margin-top: 12px; font-size: 14px; color: var(--accent-d); font-weight: 500; }
.ai-src { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--hair); font-size: 13.5px; color: var(--grey); max-width: 34em; }
.aidemo { background: #fff; border: 1px solid var(--hair); border-radius: 18px; box-shadow: 0 40px 80px -46px rgba(16,20,27,.55); overflow: hidden; }
.aid-top { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--hair); }
.aid-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--hair); }
.aid-top span { margin: 0 auto; padding-right: 33px; font-size: 12.5px; font-weight: 600; color: var(--grey); }
.aid-body { padding: 22px 22px 8px; display: grid; gap: 16px; min-height: 290px; align-content: start; }
.aid-q { justify-self: end; max-width: 86%; background: var(--night); color: #fff; padding: 12px 16px; border-radius: 14px 14px 4px 14px; font-size: 14.5px; line-height: 1.45; animation: rise .6s .3s both; }
.aid-s { animation: rise .5s 1s both; }
.aid-s > span { font-size: 13px; color: var(--grey); }
.aid-s ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.aid-s li { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--hair); animation: rise .4s both; animation-delay: calc(1.3s + var(--i) * .25s); }
.aid-s b { color: var(--accent-d); animation: pop .4s both; animation-delay: calc(1.6s + var(--i) * .25s); }
.aid-a { display: grid; gap: 8px; animation: rise .6s 2.6s both; }
.aid-a i { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--bone) 25%, #F7F9FB 50%, var(--bone) 75%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.aid-a i:nth-child(2) { width: 92%; } .aid-a i:nth-child(3) { width: 64%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.aid-a .chip { justify-self: start; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--accent-d); padding: 5px 10px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 10%, #fff); }
.aid-in { display: flex; align-items: center; justify-content: space-between; margin: 10px 16px 16px; padding: 0 6px 0 18px; height: 48px; border: 1.5px solid var(--hair); border-radius: 999px; font-size: 14.5px; color: #98A2B3; }
.aid-in em { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.aid-in svg { width: 18px; height: 18px; }
.ai-f ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.ai-f li { background: var(--card); border: 1px solid var(--hair); border-top: 3px solid var(--accent); border-radius: var(--r); padding: 24px 24px 26px; }
.ai-f b { display: block; font-size: 19px; letter-spacing: -.02em; }
.ai-f p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: #3B4352; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; margin-top: 22px; }
.checks li { position: relative; padding-left: 32px; font-size: 16.5px; line-height: 1.45; }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq .sh + details { margin-top: 10px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--accent-d); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 20px 0; font-size: 15.5px; line-height: 1.6; color: #3B4352; animation: rise .3s ease both; }
@media (max-width: 860px) {
  .ai-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 28px; }
  .aid-body { min-height: 0; padding: 18px 16px 6px; }
  .ai-f ul, .checks { grid-template-columns: 1fr; }
  .ai-cta .btn { flex: 1; }
  .faq summary { font-size: 16px; }
}

/* размытие низа первого экрана: короткое, без серой полосы */
.hero { padding-bottom: calc(clamp(56px, 10vh, 96px) + 24px); -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 56px), transparent); }
.hero::after { background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(26,163,220,.34), transparent 70%), linear-gradient(180deg, rgba(10,14,21,.55), rgba(10,14,21,.82) 100%); }
.hero + .sec { margin-top: 0; padding-top: 34px; }
@media (max-width: 860px) {
  .hero { padding-bottom: 72px; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent); }
  .hero + .sec { margin-top: 0; padding-top: 24px; }
}
/* и совсем чуть-чуть — сверху */
.hero { -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.35) 0, #000 22px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(180deg, rgba(0,0,0,.35) 0, #000 22px, #000 calc(100% - 56px), transparent); }
@media (max-width: 860px) { .hero { -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.35) 0, #000 18px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(180deg, rgba(0,0,0,.35) 0, #000 18px, #000 calc(100% - 40px), transparent); } }

/* ===== первый экран, окончательно: картинка мягко растворяется в тёмном фоне,
   а сам тёмный блок заканчивается скруглённым краем — без серых полос и дымки ===== */
.hero { -webkit-mask-image: none; mask-image: none; margin: calc(-1 * var(--top)) var(--hg) 0; border-radius: 0 0 34px 34px; padding-bottom: clamp(64px, 11vh, 110px); background: var(--night); isolation: isolate; }
.hero::before { inset: 0; background: url('img-histology.jpg') center 40% / cover; opacity: .28; filter: saturate(.85) hue-rotate(-12deg) blur(.4px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,.55) 14%, #000 34%, #000 58%, rgba(0,0,0,.35) 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,.55) 14%, #000 34%, #000 58%, rgba(0,0,0,.35) 82%, transparent 100%); }
.hero::after { background: radial-gradient(ellipse 60% 70% at 50% 8%, rgba(33,168,223,.30), transparent 70%), radial-gradient(ellipse 90% 60% at 50% 100%, rgba(33,168,223,.10), transparent 70%); }
.hero + .sec { margin-top: 0; padding-top: 40px; }
@media (max-width: 860px) {
  .hero { margin: calc(-1 * var(--top)) 0 0; border-radius: 0 0 26px 26px; padding-bottom: 56px; -webkit-mask-image: none; mask-image: none; }
  .hero + .sec { padding-top: 28px; }
}

/* ================= тёмная тема телефона и компьютера =================
   Сайт сам переходит на тёмные цвета, а браузер больше не «перекрашивает» его по-своему
   (из-за этого в шапке пропадала надпись). Тёмные блоки — шапка, первый экран, подвал — не меняются. */
:root { color-scheme: light dark; --ink2: #3B4352; }
.header, .header * { color-scheme: dark; }
.logo { color: #fff; }
.ask { color: #10141B; }
.ask input { color: #10141B; }
.ask input::placeholder { color: #8A94A6; }
@media not all { /* тёмная тема отключена по просьбе заказчика — сайт всегда светлый; код оставлен */
  :root { --bg: #0D1119; --card: #151C27; --ink: #E7ECF2; --ink2: #C3CCD8; --grey: #98A3B5; --hair: #263142; --bone: #1C2532; --accent-d: #52C3EE; --night: #070A10; }
  body { background: var(--bg); color: var(--ink); }
  .promos p, .news article.promo p, .ptx, .ai-l .lead, .ai-f p, .faq details p, .amsg, .ans q { color: var(--ink2); }
  .tag, .ev .d, .contacts svg, .quick svg, .jc, .aid-a .chip, .ans li::before { background: color-mix(in srgb, var(--accent) 16%, var(--card)); }
  .tag { background: none; }
  .find input, .find.big, .radio button.on, .auth, .aidemo, .ask.light { background: var(--card); color: var(--ink); }
  .ask.light input { color: var(--ink); }
  .ask.light .mic { color: var(--grey); }
  .auth form > input { background: var(--bg); color: var(--ink); }
  .sel select { background-color: var(--card); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23E7ECF2' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
  .btn.bone { background: var(--ink); border-color: var(--ink); color: var(--bg); }
  .btn.bone:hover { background: #fff; }
  .toast, .adm-note { background: #1F2836; color: #fff; border: 1px solid #344155; }
  .citem .del:hover { background: rgba(179,38,30,.2); color: #FF8A80; }
  .aid-a i { background: linear-gradient(90deg, var(--bone) 25%, #263142 50%, var(--bone) 75%); background-size: 200% 100%; }
  .aid-q { background: #0A0E15; border: 1px solid var(--hair); }
  .aid-in { color: var(--grey); }
  .elogo { mix-blend-mode: normal; background: #fff; border-radius: 8px; padding: 4px 8px; }
  .jgrid img { outline-color: rgba(255,255,255,.08); }
  .footer { border-top: 1px solid #1A2230; }
  .hero { box-shadow: 0 0 0 1px #1A2230; }
  .rv { --x: 0; }
  img { color-scheme: light; }
}

/* нижняя панель с кнопками убрана: возвращаем отступы, которые под неё оставлялись */
.tabbar { display: none !important; }
:root { --tab-h: 0px; }
@media (max-width: 860px) {
  .footer { padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
  .feed { bottom: 0; }
  .toast { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .adm-note { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .reader { padding-bottom: env(safe-area-inset-bottom, 0px); }
}
.reader .bar { justify-content: space-between; }

/* первый экран про издательство (пока ИИ скрыт) */
.hero.pub .wrap { max-width: 980px; }
.hero.pub .hl { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #9FB2C8; animation: rise .8s both; }
.hero.pub h1 { margin-top: 18px; color: #fff; font-size: clamp(32px, 5vw, 60px); line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.hero.pub .hp { margin: 20px auto 0; max-width: 46em; font-size: clamp(15.5px, 1.6vw, 18px); line-height: 1.6; color: #C2CCDA; }
.hero.pub .hb { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero.pub .hb .btn { height: 48px; padding: 0 24px; }
.btn.ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn.ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.hero.pub .hf { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 0; margin-top: 38px; }
.hero.pub .hf li { padding: 0 26px; text-align: center; }
.hero.pub .hf li + li { border-left: 1px solid rgba(255,255,255,.16); }
.hero.pub .hf b { display: block; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.hero.pub .hf span { font-size: 13px; color: #9FB2C8; }
@media (max-width: 860px) {
  .hero.pub .hf { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .hero.pub .hf li { padding: 0 10px; }
  .hero.pub .hf li:nth-child(3) { border-left: 0; }
  .hero.pub .hb .btn { flex: 1; }
}
.hero.pub .hl span { white-space: nowrap; }

/* ================= версия 15 ================= */
/* градиент: синий Index Media → фиолетовый, светлый и мягкий, как у Apple */
:root { --grad: linear-gradient(90deg, #21A8DF 0%, #6F86F4 52%, #A178F2 100%); --grad-light: linear-gradient(90deg, #7FD4F8 0%, #A6B2FF 50%, #D3B4FF 100%); }

/* больше воздуха по бокам на компьютере */
.wrap { max-width: 1120px; }
@media (min-width: 1100px) { :root { --pad: 56px; } }

/* компьютер: разделы прямо в шапке, без кнопки меню */
.hnav { display: none; }
@media (min-width: 861px) {
  .header .wrap { max-width: none; }
  .hnav { display: flex; align-items: center; gap: 30px; margin-left: auto; margin-right: 26px; }
  .hnav a { position: relative; font-size: 14.5px; font-weight: 500; color: #C2CBD8; letter-spacing: .01em; padding: 6px 0; transition: color .2s; }
  .hnav a:hover { color: #fff; }
  .hnav a.on { color: #fff; }
  .hnav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  .hnav a:hover::after, .hnav a.on::after { transform: none; }
  .burger { display: none; }
}

/* заголовок первого экрана — градиентом */
.hero h1, .hero.pub h1 { background: var(--grad-light); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero.pub .hf b { background: var(--grad-light); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* главная: вместо белых карточек — блоки с полоской сбоку, как на референсе, полоска градиентом */
.news article, .news article.newiss, .news article.promo, .promos article { position: relative; background: none !important; border: 0 !important; border-radius: 0; box-shadow: none !important; padding: 4px 0 4px 30px; overflow: visible; }
.news article::before, .promos article::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 4px; background: linear-gradient(180deg, #21A8DF, #6F86F4 55%, #A178F2); }
.news article:hover { transform: none; box-shadow: none; }
.news { gap: 40px; }
.news article.promo.pic { grid-template-columns: minmax(0, 34%) 1fr; gap: 26px; }
.news article.promo img { border-radius: 10px; }
.news article.promo > div { padding: 0; }
.news .tag { border: 0; padding: 0; height: auto; letter-spacing: .14em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; font-weight: 700; }
@media (max-width: 860px) { .news { gap: 34px; } .news article, .news article.newiss { padding: 2px 0 2px 20px; } .news article::before { width: 3px; } }

/* поиск по публикациям */
.psearch { flex: 1 1 280px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1.5px solid var(--hair); border-radius: var(--r-s); background: var(--card); color: var(--grey); transition: border-color .2s; }
.psearch:focus-within { border-color: var(--accent); }
.psearch svg { width: 18px; height: 18px; flex: none; }
.psearch input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); outline: 0; }
.fside .psearch { flex: none; width: 100%; max-width: 300px; background: var(--night2); border-color: var(--line); color: #8892A4; }
.fside .psearch input { color: #fff; }
.fsearch { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-s); background: var(--night2); color: #C7CFDB; flex: none; }
.fsearch svg { width: 18px; height: 18px; }
@media (max-width: 480px) { .tools .psearch { flex-basis: 100%; } }

/* градиентом — только подпись «Издательство «Индекс Медиа»»; заголовок, цифры и метки обычные; полосы толще */
.hero h1, .hero.pub h1, .hero.pub .hf b { background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; }
.hero.pub h1 { color: #fff; }
.hero.pub .hf b { color: #fff; }
.hero.pub .hl { display: inline-block; font-size: 13.5px; background: var(--grad-light); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero.pub .hl span { -webkit-text-fill-color: transparent; }
.news .tag { background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; color: var(--accent-d); }
.news article::before, .promos article::before { width: 7px; border-radius: 7px; }
.news article, .news article.newiss, .news article.promo, .promos article { padding-left: 34px; }
@media (max-width: 860px) { .news article::before, .promos article::before { width: 5px; } .news article, .news article.newiss { padding-left: 22px; } }

/* сияющий градиент: ярче, с медленным переливом и лёгким свечением */
:root { --grad-shine: linear-gradient(100deg, #6FD3FF 0%, #8FB8FF 25%, #B9A2FF 50%, #8FB8FF 75%, #6FD3FF 100%); }
@keyframes shine { to { background-position: 200% 0; } }
.hero.pub .hl { background: var(--grad-shine); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; animation: rise .8s both, shine 7s linear infinite; filter: drop-shadow(0 0 14px rgba(160,150,255,.35)); }

/* низ главной в тон: градиентные линии под заголовками разделов и над подвалом */
.sh { position: relative; border-bottom: 0; }
.sh::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #21A8DF, #6F86F4 45%, #A178F2 75%, rgba(161,120,242,0)); }
.hv2 .sh::after { height: 1px; }
.hv3 .sh::after { display: none; }
.footer::before { display: block; content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, rgba(33,168,223,0), #21A8DF 20%, #6F86F4 50%, #A178F2 80%, rgba(161,120,242,0)); }
.evs .ev .d b { color: var(--accent-d); }
.jgrid a:hover b { color: #6F86F4; }
@media (prefers-reduced-motion: reduce) { .hero.pub .hl { animation: none; } }
.hero.pub .hl { font-size: 14px; font-weight: 700; --grad-shine: linear-gradient(100deg, #7FDBFF 0%, #A9C6FF 22%, #D4BEFF 45%, #FFFFFF 52%, #D4BEFF 60%, #A9C6FF 80%, #7FDBFF 100%); background: var(--grad-shine); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 10px rgba(160,170,255,.5)); }
@media (max-width: 860px) { .hero.pub .hl { font-size: 12.5px; } }

/* ===== «живое» сияние, как у Quintessence AI и Apple ===== */
/* подпись: градиентом и переливом — только «Индекс Медиа» */
.hero.pub .hl { background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; color: #A8B6C8; filter: none; animation: rise .8s both; font-weight: 600; }
.hero.pub .hl span { -webkit-text-fill-color: currentColor; }
.hero.pub .hl .g { font-weight: 800; background: linear-gradient(120deg, #21A8DF, #5ED4FF 30%, #8E8BFF 60%, #C77DFF 80%, #21A8DF); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: shine 6s ease-in-out infinite alternate; filter: drop-shadow(0 0 12px rgba(120,150,255,.45)); }
@keyframes shine { to { background-position: 100% 0; } }

/* мягкие цветные пятна света за текстом первого экрана, медленно плывут */
.hero .glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero .glow i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .42; mix-blend-mode: screen; }
.hero .glow i:nth-child(1) { width: 46%; height: 60%; left: 8%; top: 12%; background: #21A8DF; animation: blob1 18s ease-in-out infinite alternate; }
.hero .glow i:nth-child(2) { width: 40%; height: 55%; right: 6%; top: 22%; background: #7B6CF6; animation: blob2 22s ease-in-out infinite alternate; }
.hero .glow i:nth-child(3) { width: 30%; height: 40%; left: 38%; bottom: 0; background: #B26CF0; opacity: .28; animation: blob1 26s ease-in-out infinite alternate-reverse; }
@keyframes blob1 { to { transform: translate(14%, 10%) scale(1.15); } }
@keyframes blob2 { to { transform: translate(-16%, -8%) scale(.9); } }
.hero.pub .wrap { position: relative; z-index: 1; }
.hero.pub .wrap > .glow { position: absolute; inset: -60px -10vw; z-index: -1; }

/* новинки: вместо полос сбоку — мягкое сияние за блоком */
.news article::before, .promos article::before { content: ''; position: absolute; left: -40px; top: -30px; width: 260px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(33,168,223,.32), rgba(123,108,246,.18) 55%, transparent); filter: blur(24px); z-index: -1; pointer-events: none; transition: opacity .4s, transform .6s; }
.news article:nth-child(even)::before { background: radial-gradient(closest-side, rgba(155,110,245,.30), rgba(33,168,223,.14) 55%, transparent); }
.news article:hover::before { transform: scale(1.12); }
.news article, .news article.newiss, .news article.promo, .promos article { padding-left: 0; isolation: isolate; }
@media (max-width: 860px) { .news article, .news article.newiss { padding-left: 0; } .news article::before { width: 200px; height: 180px; left: -30px; } }
@media (prefers-reduced-motion: reduce) { .hero .glow i, .hero.pub .hl .g { animation: none; } }
.news article::before, .promos article::before { width: 320px; height: 260px; left: -70px; top: -50px; background: radial-gradient(closest-side, rgba(33,168,223,.55), rgba(123,108,246,.28) 55%, transparent); filter: blur(30px); }
.news article:nth-child(even)::before { background: radial-gradient(closest-side, rgba(155,110,245,.5), rgba(33,168,223,.22) 55%, transparent); }
@media (max-width: 860px) { .news article::before { width: 240px; height: 210px; left: -60px; top: -40px; } }

/* сайт всегда светлый: браузер в тёмном режиме не перекрашивает его сам */
:root { color-scheme: only light; }
.header, .header * { color-scheme: only light; }
/* сияние оставлено только у «Индекс Медиа» в подписи; пятна света за блоками и на первом экране убраны */
.hero .glow { display: none; }
.news article::before, .promos article::before { content: none; }

/* ======================= версия 16: по ТЗ Рудольфа ======================= */
:root { --violet: #8C86EE; --blue: #1E9BD7; --header-h: 56px; --hg: 0px; --top: var(--header-h); }

/* шапка: простая чёрная полоса во всю ширину, всегда видна */
.header { top: 0; left: 0; right: 0; max-width: none; margin: 0; height: var(--header-h); border-radius: 0; border: 0; border-bottom: 1px solid #262626; background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.header .wrap { max-width: none; padding: 0 28px; }
.header .logo { font-size: 18px; }
.hbtns .cartbtn { display: none; }
@media (min-width: 861px) {
  .hnav { gap: 26px; margin-right: 0; }
  .hnav a { font-size: 13.5px; font-weight: 700; letter-spacing: .06em; text-transform: lowercase; color: #fff; padding: 4px 0; }
  .hnav a:hover { color: #fff; opacity: .75; }
  .hnav a::after { background: var(--violet); height: 2px; bottom: -3px; }
  .hbtns { display: none; }
}
@media (max-width: 860px) { .header .wrap { padding: 0 16px; } .burger { width: 40px; } }

/* выпадающее меню на телефоне — как у референса: чёрный экран, список строчными, фиолетовая полоса слева */
.menu { background: #000; display: flex; align-items: center; }
.menu .wrap { width: 100%; padding-top: 0; padding-bottom: 0; }
.menu ol { position: relative; padding-left: 26px; margin: 0 6px; }
.menu ol::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 6px; background: var(--violet); }
.menu li { border: 0; }
.menu li a { display: block; padding: 12px 0; font-size: 24px; font-weight: 700; letter-spacing: .06em; text-transform: lowercase; color: #fff; }
.menu li a:hover, .menu li a.on { color: var(--violet); }
.menu li a::after, .menu li a > svg { display: none; }

/* кнопки: две, как у Apple — синяя и светлая */
.btn { border-radius: 999px; border: 1.5px solid var(--blue); color: var(--blue); background: transparent; font-weight: 500; }
.btn:hover { background: color-mix(in srgb, var(--blue) 10%, transparent); color: var(--blue); }
.btn.solid { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.solid:hover { background: #1784B8; border-color: #1784B8; color: #fff; box-shadow: none; transform: none; }
.lnk, a.lnk { color: var(--blue); }

/* первый экран: крупно фиолетовым, обычным начертанием; под ним белая строка, кнопки, цифры */
.hero { margin: 0; border-radius: 0; padding-top: clamp(64px, 12vh, 120px); padding-bottom: clamp(56px, 10vh, 100px); }
.hero.pub2 .wrap { max-width: 760px; text-align: left; position: relative; z-index: 1; }
.hero.pub2 h1 { font-size: clamp(52px, 10vw, 104px); font-weight: 400; line-height: .95; letter-spacing: -.03em; color: var(--violet); background: none; -webkit-text-fill-color: currentColor; animation: rise .8s both; }
.hero.pub2 .hl { margin-top: 22px; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #fff; animation: rise .8s .1s both; }
.hero.pub2 .hb { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; animation: rise .8s .2s both; }
.hero.pub2 .hb .btn { height: 46px; padding: 0 26px; font-size: 15px; }
.hero.pub2 .hb .btn:not(.solid) { border-color: #7FC8EE; color: #BFE6FA; }
.hero.pub2 .hb .btn:not(.solid):hover { background: rgba(255,255,255,.08); }
.hero.pub2 .hf { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 40px; animation: rise .8s .3s both; }
.hero.pub2 .hf b { display: block; font-size: 30px; font-weight: 400; color: #fff; letter-spacing: -.02em; }
.hero.pub2 .hf span { font-size: 13px; color: #A8B3C2; }

/* главная — одна центральная колонка с полями по бокам; у каждого раздела фиолетовая полоса слева */
.wrap.home { max-width: 760px; padding-top: 48px; }
.hsec { position: relative; padding: 2px 0 2px 30px; margin-bottom: 64px; }
.hsec::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--violet); }
.hsec .sh { border: 0; padding-bottom: 0; margin-bottom: 18px; align-items: baseline; }
.hsec .sh::after { display: none; }
.sh h2, .hv1 .sh h2 { text-transform: none; letter-spacing: -.02em; font-size: clamp(24px, 3vw, 30px); font-weight: 700; }
.footer::before { display: none; }
@media (max-width: 860px) { .wrap.home { padding-top: 34px; } .hsec { padding-left: 20px; margin-bottom: 48px; } .hsec::before { width: 4px; } }

/* посты */
.post .plab { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); margin-bottom: 12px; }
.post h3 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; letter-spacing: -.02em; }
.post h3 a:hover { color: var(--blue); }
.post .ptx { margin-top: 12px; }
.post .ptx ul { list-style: none; padding: 0; }
.post .ptx li { padding: 8px 0; border-bottom: 1px solid var(--hair); }
.post .btn { margin-top: 18px; height: 42px; }
.post.wpic .pbody { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: start; }
.post .pimg img { width: 100%; border-radius: 4px; box-shadow: 0 14px 30px -18px rgba(16,20,27,.6); }
@media (max-width: 520px) { .post.wpic .pbody { grid-template-columns: 104px 1fr; gap: 16px; } }

/* каталог — карусель */
.carousel { position: relative; }
.ctrack { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.ctrack::-webkit-scrollbar { display: none; }
.ctrack > a { scroll-snap-align: start; display: grid; align-content: start; gap: 6px; }
.ctrack img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; margin-bottom: 10px; transition: transform .3s; }
.ctrack a:hover img { transform: translateY(-4px); }
.ctrack b { font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ctrack p { font-size: 13px; line-height: 1.45; color: var(--grey); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ctrack span { font-size: 13px; font-weight: 600; }
.cnav { position: absolute; top: 34%; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--hair); font-size: 22px; line-height: 1; color: var(--ink); display: grid; place-items: center; box-shadow: 0 8px 20px -12px rgba(16,20,27,.5); }
.cnav.prev { left: -18px; } .cnav.next { right: -18px; }
@media (max-width: 860px) { .ctrack { grid-auto-columns: 44%; } .cnav { display: none; } }

/* публикации на главной — без нумерации */
.hsec .publist li { grid-template-columns: 1fr auto; }

/* мероприятия: кнопки «Программа» / «Оставить заявку» и «Купить» */
.evb { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.evb .btn { height: 38px; padding: 0 16px; font-size: 13.5px; }
.ev { grid-template-columns: 84px 1fr auto; }
.ev .elogo { grid-column: 2; grid-row: 2; justify-self: start; width: 110px; height: 40px; object-position: left center; }
.ev i.elogo { display: none; }
.hsec .ev { grid-template-columns: 72px 1fr; }
.hsec .ev .evb { grid-column: 2; justify-content: flex-start; }
@media (max-width: 860px) { .ev .evb { grid-column: 2 / -1; justify-content: flex-start; } }

/* значки поиска и корзины на страницах */
.ph-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ph-row > div:last-child, .ph-row .radio { margin-left: auto; }
.picons { display: flex; gap: 8px; margin-left: auto; }
.ib { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--hair); display: grid; place-items: center; color: var(--ink); background: var(--card); }
.ib:hover { border-color: var(--blue); color: var(--blue); }
.ib svg { width: 19px; height: 19px; }
.ib .cart-n { top: -4px; right: -4px; }

/* подвал: логотип, телефон, почта, соцсети; внизу — копирайт и политика */
.footer .wrap { display: block; max-width: 760px; }
.f-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.f-bot { display: flex; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: #8A93A2; }
.f-bot .copy { padding: 0; border: 0; margin: 0; }
.f-pol { color: #B7C0CD; text-decoration: underline; text-underline-offset: 3px; }
.f-pol:hover { color: #fff; }
.req { font-size: 15px; line-height: 1.7; color: var(--ink2, #3B4352); }
.doc p { margin-bottom: 14px; line-height: 1.65; max-width: 70ch; }
@media (max-width: 860px) { .f-top { flex-direction: column; align-items: flex-start; } .fc { align-items: flex-start; } }
.f-nav[hidden] { display: none !important; }

/* полоса раздела появляется вместе с текстом */
.hsec.bar::before { transform: scaleY(0); transform-origin: top; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.hsec.bar.in::before { transform: none; }
/* меню в шапке на компьютере: спокойнее, по ширине содержимого */
@media (min-width: 861px) {
  .header .wrap { max-width: 1120px; padding: 0 var(--pad); }
  .hnav { gap: 34px; }
  .hnav a { font-size: 15px; font-weight: 500; letter-spacing: 0; color: #E3E7EC; }
  .hnav a:hover { opacity: 1; color: #fff; }
  .hnav a.on { color: #fff; }
}

/* ===== правки анимаций и меню ===== */
/* полоса раздела: плавно проявляется вместе с текстом, без «вытягивания» */
.hsec.bar::before { transform: none; opacity: 0; transition: opacity .7s ease .1s; }
.hsec.bar.in::before { opacity: 1; }
/* меню на компьютере: ровно по центру шапки; полноэкранное меню там не показывается никогда */
@media (min-width: 861px) {
  .menu { display: none !important; }
  .hnav { align-self: stretch; }
  .hnav a { display: flex; align-items: center; height: 100%; padding: 0; }
  .hnav a::after { bottom: 12px; }
}
/* меню на телефоне: спокойное появление вместо «шторки» */
@media (max-width: 860px) {
  .menu { clip-path: none !important; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility 0s linear .25s; padding-top: var(--header-h); }
  .menu-open .menu { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .25s ease; }
  .menu ol::before { transform: scaleY(0); transform-origin: top; transition: transform .45s cubic-bezier(.2,.7,.2,1) .05s; }
  .menu-open .menu ol::before { transform: none; }
  .menu li { opacity: 0; transform: translateX(-10px); transition: opacity .3s, transform .35s; }
  .menu-open .menu li { opacity: 1; transform: none; transition-delay: calc(.08s + var(--n) * 45ms); }
  .menu li a { font-size: 26px; padding: 10px 0; }
}
/* меню на компьютере — снова у правого края экрана, логотип у левого */
@media (min-width: 861px) { .header .wrap { max-width: none; padding: 0 28px; } }

/* фиолетовый заменён градиентом: синий Index Media → фиолетовый, светлый, как у Apple */
:root { --gradv: linear-gradient(180deg, #4FC3F5 0%, #7E92F6 50%, #AE86F2 100%); --gradh: linear-gradient(90deg, #5CC8F5 0%, #8F95F7 50%, #B98CF5 100%); }
.hero.pub2 h1 { background: var(--gradh); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .06em; }
.hsec::before, .menu ol::before { background: var(--gradv); border-radius: 6px; }
.post .plab { background: var(--gradh); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; display: inline-block; }
.hnav a::after { background: var(--gradh); }
.menu li a:hover, .menu li a.on { color: #A9A6F6; }
/* цифры на первом экране — с вертикальными разделителями, как раньше */
.hero.pub2 .hf { gap: 14px 0; }
.hero.pub2 .hf li { padding: 0 28px; }
.hero.pub2 .hf li:first-child { padding-left: 0; }
.hero.pub2 .hf li + li { border-left: 1px solid rgba(255,255,255,.22); }
@media (max-width: 520px) { .hero.pub2 .hf li { padding: 0 16px; } .hero.pub2 .hf b { font-size: 26px; } }
/* цифры всегда в один ряд по три, подписи переносятся внутри своей колонки */
.hero.pub2 .hf { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; }
.hero.pub2 .hf span { display: block; max-width: 11em; line-height: 1.35; }
@media (max-width: 520px) {
  .hero.pub2 .hf { grid-template-columns: repeat(3, 1fr); }
  .hero.pub2 .hf li { padding: 0 12px; }
  .hero.pub2 .hf b { font-size: 24px; }
  .hero.pub2 .hf span { font-size: 12px; }
}
/* кнопки первого экрана одной ширины; цифры — синие и крупные, как были */
.hero.pub2 .hb .btn { width: 170px; padding: 0; justify-content: center; }
.hero.pub2 .hf b { font-size: clamp(28px, 3.2vw, 36px); font-weight: 800; color: var(--accent); letter-spacing: -.03em; }
@media (max-width: 520px) { .hero.pub2 .hb .btn { width: auto; flex: 1; } .hero.pub2 .hf b { font-size: 26px; } }
.hero.pub2 .hl { white-space: nowrap; letter-spacing: 0; }
/* пост с обложкой на телефоне: обложка и заголовок рядом, список и кнопка — на всю ширину под ними */
@media (max-width: 520px) {
  .post.wpic .pbody { grid-template-columns: 96px 1fr; gap: 14px 16px; align-items: start; }
  .post.wpic .pbody > div { display: contents; }
  .post.wpic .pbody h3 { grid-column: 2; grid-row: 1; align-self: center; }
  .post.wpic .pbody .ptx, .post.wpic .pbody .btn { grid-column: 1 / -1; }
  .post.wpic .pbody .btn { justify-self: start; margin-top: 4px; }
  .post .ptx { font-size: 15px; }
}
/* градиентный текст обрезается по своей рамке: даём место хвостику «g» */
.hero.pub2 h1 { padding-bottom: .2em; margin-bottom: -.14em; }

/* полоса толще, как у референса; к ней примыкает только текст, картинки — между абзацами */
.hsec { padding-left: 36px; }
.hsec::before { width: 9px; border-radius: 0; }
.post.wpic .pbody { display: block; }
.post .pimg { display: block; margin: 18px 0 4px; }
.post .pimg img { width: auto; max-width: 100%; max-height: 300px; border-radius: 3px; }
@media (max-width: 860px) { .hsec { padding-left: 24px; } .hsec::before { width: 7px; } }
@media (max-width: 520px) {
  .post.wpic .pbody { display: block; }
  .post.wpic .pbody > div { display: block; }
  .post .pimg img { max-height: 220px; }
}

/* обложки на главной: в посте и в карусели один размер (на странице каталога — как было) */
.home { --cov: 190px; }
@media (max-width: 520px) { .home { --cov: 160px; } }
.post .pimg img { width: var(--cov); max-width: 100%; height: auto; max-height: none; aspect-ratio: 191 / 258; object-fit: cover; }
.ctrack { grid-auto-columns: var(--cov); gap: 22px; }
.ctrack img { aspect-ratio: 191 / 258; }
.cnav { top: calc(var(--cov) * 258 / 191 / 2 - 19px); }

/* подвал: телефон и почта — только в «О нас»; ссылка на политику серая, как строка ©, без подчёркивания */
.f-top, .footer .fc { flex-direction: row; align-items: center; }
.f-pol { color: #6F7A8D; text-decoration: none; }
.f-pol:hover { color: #B7C0CD; }

.nw { white-space: nowrap; }

/* подвал: у строки © своя черта не нужна — линия одна, над всей нижней строкой */
.footer .f-bot p.copy { border: 0; padding: 0; margin: 0; grid-column: auto; }
.f-bot { align-items: baseline; }

/* «Дальше» в ленте: обрезается только название — ровно 3 строки с многоточием; подпись журнала над ним не считается */
.queue button { display: block; -webkit-line-clamp: unset; overflow: visible; }
.queue .qt2 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* публикации: при наведении текст сдвигается, но ширина колонки не меняется — строки не перескакивают */
.publist li:hover { padding-left: 0; }
.publist li > div { transition: transform .25s; }
.publist li:hover > div { transform: translateX(8px); }

/* «Показать ещё» под списком публикаций */
.libmore { display: flex; margin: 28px auto 0; min-width: 240px; justify-content: center; }

/* ===== первый экран на телефоне — как на компьютере ===== */
@media (max-width: 520px) {
  /* заголовок на всю ширину колонки, подпись под ним мельче и с разрядкой — растягивается по ширине «Publishing» */
  .hero.pub2 h1 { font-size: min(16vw, 104px); }
  .hero.pub2 .hl { font-size: 10.5px; font-weight: 600; }
  /* кнопки — фиксированной ширины у левого края, а не во всю строку */
  .hero.pub2 .hb .btn { flex: none; width: 150px; }
  /* цифры — плотно слева, с вертикальными линиями между ними */
  .hero.pub2 .hf { grid-template-columns: repeat(3, auto); justify-content: start; }
  .hero.pub2 .hf li { padding: 0 16px; }
  .hero.pub2 .hf li:first-child { padding-left: 0; }
  .hero.pub2 .hf span { max-width: none; font-size: 12px; }
  .hero.pub2 .hf li { padding: 0 14px; }
}

/* ===== главная в стиле davidsylvian.com (product) =====
   полоса — у каждого текстового блока своя (10 px, текст в 20 px от неё);
   картинки и карусель стоят между блоками без полосы, от её левого края */
.hsec, .hsec.rv { padding-left: 0; }
.hsec::before { display: none; }
.rl { padding-left: 30px; background: var(--gradv) left top / 10px 100% no-repeat; }
.hsec > * + * { margin-top: 32px; }
.hsec .sh { margin-bottom: 0; }
.post .plab { margin-bottom: 10px; }
.post .ptx { margin-top: 0; }
.post .ptx > :first-child { margin-top: 0; }
.post .pimg { display: block; margin: 32px 0 0; }
.post .pimg img { width: var(--cov); height: auto; max-height: none; }
.hsec .publist li:first-child { padding-top: 4px; }
.hsec .publist li:last-child, .hsec .evs > li:last-child { border-bottom: 0; padding-bottom: 4px; }
.hsec .evs > li:first-child { padding-top: 4px; }

/* заголовок каталога; «Смотреть все» — строкой ниже, на месте артикула */
.ht { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
.rl .lnk.code { display: inline-flex; margin-top: 8px; font-size: 14px; letter-spacing: .02em; }

/* карусель: один журнал на светло-серой подложке, стрелки по бокам, точки снизу */
.pcar { position: relative; background: #E2E5EA; }
.pct { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.pct::-webkit-scrollbar { display: none; }
.pct > a { scroll-snap-align: start; display: grid; place-items: center; padding: 44px 0 52px; }
.pct img { width: var(--cov); aspect-ratio: 191 / 258; object-fit: cover; box-shadow: 0 22px 40px -22px rgba(16,20,27,.55); transition: transform .3s; }
.pct a:hover img { transform: translateY(-4px); }
.pnav { position: absolute; top: calc(50% - 24px); width: 44px; height: 48px; display: grid; place-items: center; font-size: 22px; color: #3A4250; background: none; border: 0; transition: color .2s; }
.pnav:hover { color: var(--accent); }
.pnav.prev { left: 6px; } .pnav.next { right: 6px; }
.pdots { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.pdots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(58,66,80,.28); transition: background .2s; }
.pdots i.on { background: #3A4250; }
.ctext b { display: block; font-size: 17px; font-weight: 700; }
.ctext p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--ink2); }
.ctext span { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; }

@media (max-width: 860px) { .rl { padding-left: 30px; } .hsec > * + * { margin-top: 24px; } .post .pimg { margin-top: 24px; } }
@media (max-width: 520px) { .pct > a { padding: 30px 0 42px; } .pdots { bottom: 16px; } .pnav { width: 38px; } .pnav.prev { left: 0; } .pnav.next { right: 0; } }

/* заголовок раздела и список под ним — один блок с общей полосой */
.rl > .sh { margin-bottom: 14px; }
/* самые узкие телефоны (320 px): цифры первого экрана ужимаются, чтобы третья не уходила за край */
@media (max-width: 359px) {
  .hero.pub2 .hf li { padding: 0 8px; }
  .hero.pub2 .hf li:first-child { padding-left: 0; }
  .hero.pub2 .hf span { font-size: 11px; }
  .hero.pub2 .hf b { font-size: 22px; }
  .hero.pub2 .hb .btn { width: calc(50% - 6px); padding: 0 8px; }
}
/* выпадающий список в шапке страницы (сортировка у автора, темы, торгового названия) не шире экрана */
.ph-row .sel { max-width: 100%; min-width: 0; }
.ph-row .sel select { min-width: 0; flex: 1; }
/* пост без картинки: заголовок и текст в одном блоке */
.post .rl.one .ptx { margin-top: 12px; }

/* ===== журнал: вкладки «Выпуски / О журнале / Размещение рекламы» ===== */
.jtabs { margin-bottom: 24px; flex-wrap: wrap; row-gap: 0; }
.jdoc, .pdoc { max-width: 720px; font-size: 16px; line-height: 1.65; }
.jdoc p + p, .pdoc p + p { margin-top: .9em; }
.jdoc a, .pdoc a { color: var(--accent-d); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.jdoc ul, .pdoc ul { list-style: disc; padding-left: 1.3em; margin: .6em 0; }

/* ===== партнёры ===== */
.plist2 { display: grid; gap: 10px; max-width: 760px; }
.plist2 a { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; padding: 14px; background: #fff; border: 1px solid var(--hair); border-radius: var(--r-s); transition: border-color .2s; }
.plist2 a:hover { border-color: var(--accent); }
.plist2 img, .plist2 i { width: 96px; height: 60px; object-fit: contain; display: block; }
.plist2 b { display: block; font-size: 16px; line-height: 1.35; }
.plist2 span { font-size: 13px; color: var(--grey); }
.plogo { max-width: 140px; max-height: 80px; object-fit: contain; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 28px; }
.gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; background: var(--hair); }
@media (max-width: 520px) { .plist2 a { grid-template-columns: 72px 1fr; gap: 14px; } .plist2 img, .plist2 i { width: 72px; height: 48px; } .gal { grid-template-columns: repeat(3, 1fr); gap: 4px; } }

/* ===== оформление заказа в корзине ===== */
.osum { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--hair); font-size: 14px; color: var(--grey); }
.osum b { color: var(--ink); font-size: 16px; margin-top: 4px; }
.oform { display: grid; gap: 12px; padding: 16px 0 24px; }
.oform label { display: grid; gap: 5px; font-size: 13.5px; font-weight: 600; }
.oform label small { font-weight: 400; color: var(--grey); }
.oform input:not([type=checkbox]), .oform textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 10px 12px; border: 1.5px solid var(--hair); border-radius: var(--r-s); background: #fff; color: var(--ink); width: 100%; }
.oform input:focus, .oform textarea:focus { outline: none; border-color: var(--accent); }
.oform .chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; line-height: 1.45; }
.oform .chk input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--accent); }
.drawer footer .tbtn { justify-self: center; }
.odone { padding: 32px 0; display: grid; gap: 10px; }
.odone b { font-size: 22px; }
.odone p { color: var(--grey); line-height: 1.55; }

/* ===== правовые страницы ===== */
.legal { max-width: 760px; font-size: 15.5px; line-height: 1.65; }
.legal h2 { font-size: 19px; margin: 30px 0 8px; letter-spacing: -.01em; }
.legal p { margin-top: .6em; }
.legal .lead { color: var(--grey); font-size: 14px; }
.legal .small { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--hair); line-height: 1.8; }

/* ===== плашка о cookie ===== */
.cookie { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 120; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 20px; background: #fff; border: 1px solid var(--hair); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(16,20,27,.45); font-size: 14px; line-height: 1.45; animation: rise .4s ease both; }
.cookie p { flex: 1; color: var(--ink); }
.cookie .btn { flex: none; height: 40px; padding: 0 18px; }
body.feed-mode .cookie { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 520px) { .cookie { flex-direction: column; align-items: stretch; gap: 10px; } .cookie .btn { width: 100%; } }

/* ===== согласие в регистрации ===== */
.auth .achk { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--grey); text-align: left; }
.auth .achk input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--accent); }
/* вкладки журнала на телефоне — все три в одну строку */
@media (max-width: 520px) { .jtabs { gap: 14px; } .jtabs a { font-size: 14px; } }
/* плашка cookie не перекрывает открытое меню */
body.menu-open .cookie { display: none; }

/* полоса под часами на iPhone (Safari красит её в цвет холста страницы): холст чёрный, как шапка;
   у самой страницы фон прежний — серый */
html { background: #000; }
body { min-height: 100vh; }
