/* ==========================================================================
   MedTalks News – editorial theme
   Black & white, one red accent, straight lines, film grain.
   ========================================================================== */

:root {
	--ink: #120c0a;
	--ink-2: #1b1310;
	--ink-3: #2c211c;
	--paper: #fff;
	--fog: #f4ece2;
	--fog-2: #ebe0d2;
	--line: #e7dccd;
	--line-2: #cfbfac;
	--line-d: rgba(246, 236, 224, .16);
	--muted: #67574e;
	--muted-d: rgba(246, 236, 224, .68);
	--red: #cf3f5c;
	--red-2: #e6667f;
	--red-dk: #a92f48;

	--f: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--wrap: 1320px;
	--pad: clamp(18px, 3.6vw, 40px);
	--sec: clamp(64px, 8vw, 112px);
	--gap: clamp(20px, 2.4vw, 32px);
	--ease: cubic-bezier(.2, .8, .2, 1);
	--adm: var(--wp-admin--admin-bar--height, 0px);

	--noise-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .93 0 0 0 0 .84 0 0 0 1.4 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	--noise-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .12 0 0 0 0 .09 0 0 0 1.3 -.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--adm) + 90px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--f); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }
.screen-reader-text, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 1000; left: 12px; top: 12px; padding: 12px 18px; background: var(--ink); color: #fff; }
[hidden] { display: none !important; }
.i { width: 20px; height: 20px; flex: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Grain ---------- */
.grain { position: relative; isolation: isolate; }
.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3; background-repeat: repeat; }
.grain--dark { background-color: var(--ink); color: #f8f0e6; }
.grain--dark::after { background-image: var(--noise-d); opacity: .085; }
.grain--light::after { background-image: var(--noise-l); opacity: .05; }
.grain--img::after { background-image: var(--noise-l); opacity: .22; mix-blend-mode: multiply; }
.bw img { filter: saturate(.9) contrast(1.04); }

/* ---------- Type helpers ---------- */
.eyebrow, .sh__k, .kicker, .side-h span, .cats__label, .ftr__h, .phead .eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; line-height: 1.2; }
.eyebrow, .sh__k { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before, .sh__k::before { content: ""; width: 9px; height: 9px; background: var(--red); flex: none; }
.kicker { display: inline-block; color: var(--red); margin-bottom: 10px; }
a.kicker:hover { color: var(--ink); }
.grain--dark .kicker { color: var(--red-2); }
.grain--dark a.kicker:hover { color: #fff; }
.display { font-size: clamp(34px, 4vw, 58px); font-weight: 900; letter-spacing: -.035em; line-height: 1; }
h1, h2, h3, .display, .pc__t, .phead__t { overflow-wrap: break-word; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); font-weight: 500; }
.grain--dark .lede { color: var(--muted-d); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.meta > * + *::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 14px 2px 0; background: currentColor; opacity: .5; vertical-align: middle; }
.grain--dark .meta { color: var(--muted-d); }

/* ---------- Buttons ---------- */
.btn { --bg: var(--ink); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; background: var(--bg); color: var(--fg); border: 1.5px solid var(--bg); font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.btn .i { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .i:last-child { transform: translateX(4px); }
.btn--ink:hover { --bg: var(--red); }
.btn--red { --bg: var(--red); }
.btn--red:hover { --bg: var(--ink); }
.grain--dark .btn--red:hover { --bg: #fff; --fg: var(--ink); }
.btn--line { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--light { --fg: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 11.5px; }
.btn--block { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

.sq { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); transition: border-color .2s, background .2s, color .2s; }
.sq:hover { border-color: var(--ink); }
.sq--dark { background: transparent; border-color: var(--line-d); color: #fff; }
.sq--dark:hover { border-color: #fff; }
.sq--red { background: var(--red); border-color: var(--red); color: #fff; }

.more { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.more .i { width: 18px; height: 18px; color: var(--red); transition: transform .3s var(--ease); }
.more:hover .i { transform: translateX(5px); }
.grain--dark .more { color: #fff; }

/* ---------- Top bar ---------- */
.topbar { font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.topbar__in { display: flex; align-items: center; gap: 24px; min-height: 38px; }
.topbar__date { white-space: nowrap; }
.topbar__tag { color: var(--muted-d); padding-left: 24px; border-left: 1px solid var(--line-d); }
.topbar__end { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.socials { display: flex; gap: 6px; }
.socials a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid currentColor; opacity: .85; transition: background .2s, color .2s, border-color .2s, opacity .2s; }
.socials a:hover { background: var(--red); border-color: var(--red); color: #fff; opacity: 1; }
.socials .i { width: 16px; height: 16px; }
.socials--sm a { width: 28px; height: 28px; border-color: transparent; }
.socials--sm .i { width: 15px; height: 15px; }

/* ---------- Masthead ---------- */
.mast { position: sticky; top: var(--adm); z-index: 60; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.mast.is-stuck { box-shadow: 0 1px 0 var(--line), 0 18px 30px -24px rgba(16, 10, 8, .35); }
.mast__in { display: flex; align-items: center; gap: 28px; height: 84px; transition: height .3s var(--ease); }
.mast.is-stuck .mast__in { height: 68px; }
.mast__logo { display: block; color: var(--red); flex: none; }
.mast__logo .logo { width: 186px; height: auto; display: block; transition: width .3s var(--ease); }
.mast.is-stuck .mast__logo .logo { width: 160px; }
.mast__nav { margin-left: auto; align-self: stretch; }
.mast__nav .menu { display: flex; height: 100%; }
.mast__nav .menu > li { position: relative; display: flex; align-items: center; }
.mast__nav .menu > li > a { position: relative; display: flex; align-items: center; height: 100%; padding: 0 15px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mast__nav .menu > li > a::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: -1px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.mast__nav .menu > li:hover > a::after, .mast__nav .menu > li:focus-within > a::after, .mast__nav .menu > .current-menu-item > a:not([href*="#"])::after, .mast__nav .menu > .current-menu-ancestor > a:not([href*="#"])::after { transform: scaleX(1); }
.mast__nav .menu-item-has-children > a { padding-right: 4px; }
.mast__nav .sub-toggle { display: grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; color: var(--muted); }
.mast__nav .sub-toggle .i { width: 14px; height: 14px; transition: transform .25s; }
.mast__nav li:hover > .sub-toggle .i, .mast__nav .sub-toggle[aria-expanded="true"] .i { transform: rotate(180deg); color: var(--red); }
.mast__nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 260px; padding: 8px 0; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--ink); box-shadow: 0 30px 50px -30px rgba(16, 10, 8, .4); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s; }
.mast__nav li:hover > .sub-menu, .mast__nav li:focus-within > .sub-menu, .mast__nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease); }
.mast__nav .sub-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--line); transition: color .2s, padding .25s var(--ease); }
.mast__nav .sub-menu li:last-child a { border-bottom: 0; }
.mast__nav .sub-menu a::after { content: "→"; color: var(--red); opacity: 0; transition: opacity .2s; }
.mast__nav .sub-menu a:hover { color: var(--red); padding-left: 26px; }
.mast__nav .sub-menu a:hover::after { opacity: 1; }
.mast__act { display: flex; align-items: center; gap: 10px; }
.mast__nav + .mast__act { padding-left: 18px; border-left: 1px solid var(--line); }
.mast__burger { display: none; gap: 5px; }
.mast__burger span { display: block; width: 20px; height: 2px; background: currentColor; }
.mast__burger { grid-template-rows: repeat(3, 2px); align-content: center; }

/* ---------- Category rail ---------- */
.cats { background: var(--fog); border-bottom: 1px solid var(--line); }
.cats__in { display: flex; align-items: center; gap: 18px; height: 50px; }
.cats__label { flex: none; padding-right: 18px; border-right: 1px solid var(--line-2); color: var(--red); }
.cats__track { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.cats__list { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.cats__list::-webkit-scrollbar { display: none; }
.cats__list a { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s; }
.cats__list a sup { font-size: 10px; font-weight: 700; color: var(--muted); top: 0; }
.cats__list a:hover, .cats__list a.is-on { background: var(--ink); color: #fff; }
.cats__list a:hover sup, .cats__list a.is-on sup { color: var(--red-2); }
.cats__nav { display: flex; gap: 4px; }
.rail-btn { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-2); background: #fff; transition: background .2s, color .2s, border-color .2s, opacity .2s; }
.rail-btn .i { width: 16px; height: 16px; }
.rail-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.rail-btn:disabled { opacity: .35; pointer-events: none; }
.grain--dark .rail-btn { background: transparent; border-color: var(--line-d); color: #fff; }
.grain--dark .rail-btn:hover { background: var(--red); border-color: var(--red); }

/* ---------- Mobile menu ---------- */
.mnav { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--pad) max(24px, env(safe-area-inset-bottom)); animation: mt-in .3s var(--ease); }
.mnav__top { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; height: 68px; background: var(--ink); border-bottom: 1px solid var(--line-d); margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
.mnav__top .logo { width: 150px; }
.mnav__body { position: relative; z-index: 4; padding: 22px 0; }
.mnav__search { display: flex; border: 1.5px solid var(--line-d); margin-bottom: 18px; }
.mnav__search input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; background: transparent; border: 0; color: #fff; font-size: 15px; outline: 0; }
.mnav__search input::placeholder { color: var(--muted-d); }
.mnav__search button { width: 52px; display: grid; place-items: center; background: var(--red); color: #fff; }
.mnav__nav .menu > li { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line-d); counter-increment: mi; }
.mnav__nav .menu { counter-reset: mi; }
.mnav__nav .menu > li > a { flex: 1; display: flex; align-items: baseline; gap: 14px; padding: 15px 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.mnav__nav .menu > li > a::before { content: counter(mi, decimal-leading-zero); font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--red-2); min-width: 20px; }
.mnav__nav .sub-toggle { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-d); color: #fff; }
.mnav__nav .sub-toggle .i { width: 16px; height: 16px; transition: transform .25s; }
.mnav__nav .sub-toggle[aria-expanded="true"] { background: var(--red); border-color: var(--red); }
.mnav__nav .sub-toggle[aria-expanded="true"] .i { transform: rotate(180deg); }
.mnav__nav .sub-menu { display: none; flex-basis: 100%; padding: 0 0 14px 34px; }
.mnav__nav .is-open > .sub-menu { display: block; }
.mnav__nav .sub-menu a { display: block; padding: 9px 0; font-size: 16px; font-weight: 600; color: var(--muted-d); }
.mnav__nav .sub-menu a:hover, .mnav__nav .menu a:hover { color: #fff; }
.mnav__cats { border-bottom: 1px solid var(--line-d); margin-bottom: 22px; }
.mnav__cats summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red-2); cursor: pointer; list-style: none; }
.mnav__cats summary::-webkit-details-marker { display: none; }
.mnav__cats summary span { min-width: 30px; padding: 4px 8px; border: 1px solid var(--line-d); color: #fff; text-align: center; }
.mnav__cats ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; padding-bottom: 14px; }
.mnav__cats a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; font-size: 14px; font-weight: 600; color: var(--muted-d); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.mnav__cats a sup { top: 0; font-size: 11px; color: var(--red-2); }
.mnav__foot { position: relative; z-index: 4; margin-top: auto; display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line-d); font-size: 15px; font-weight: 600; }
.mnav__foot .socials { margin-top: 6px; }
body.menu-open { overflow: hidden; }

/* ---------- Search overlay ---------- */
.search { position: fixed; inset: 0; z-index: 130; }
.search__bg { position: absolute; inset: 0; background: rgba(18, 12, 10, .6); animation: mt-fade .25s; }
.search__box { position: relative; background: #fff; border-bottom: 4px solid var(--red); padding: calc(var(--adm) + 48px) 0 44px; animation: mt-drop .35s var(--ease); }
.search__box .wrap { position: relative; }
.search__label { display: block; margin-bottom: 14px; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.search__row { display: flex; gap: 12px; border-bottom: 3px solid var(--ink); }
.search__row input { flex: 1; min-width: 0; height: 72px; border: 0; outline: 0; background: transparent; font-size: clamp(22px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.search__row input::placeholder { color: var(--line-2); }
.search__row .btn { align-self: center; }
.search__hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 20px; font-size: 13px; font-weight: 600; color: var(--muted); }
.search__hint a { padding: 6px 12px; border: 1px solid var(--line); color: var(--ink); transition: background .2s, color .2s; }
.search__hint a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.search__x { position: absolute; right: var(--pad); top: -30px; }

@keyframes mt-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes mt-fade { from { opacity: 0; } }
@keyframes mt-drop { from { transform: translateY(-30px); opacity: 0; } }

/* ---------- Sections ---------- */
.sec { padding: var(--sec) 0; }
.sec--fog { background: var(--fog); }
.sh { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; padding-top: 18px; margin-bottom: clamp(28px, 3.4vw, 44px); border-top: 3px solid var(--ink); }
.sh__t { max-width: 820px; margin-top: 14px; font-size: clamp(28px, 3.2vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; }
.sh__k--light { color: #fff; }
.grain--dark .sh { border-top-color: #fff; }
.side-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); }
.side-h a { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.side-h a .i { width: 15px; height: 15px; }
.grain--dark .side-h, .side-h--light { border-top-color: #fff; border-bottom-color: var(--line-d); }
.grain--dark .side-h a { color: var(--red-2); }
.rail-nav { display: flex; gap: 4px; }

/* ---------- Post cards ---------- */
.pc { position: relative; }
.pc__media { position: relative; display: block; overflow: hidden; background: var(--fog-2); aspect-ratio: 16 / 10; }
.pc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pc__media::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.pc:hover .pc__media img { transform: scale(1.04); }
.pc:hover .pc__media::after { transform: scaleX(1); }
.pc__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--line-2); background: var(--fog); }
.pc__ph .logo { width: 50%; }
.pc__t { font-weight: 700; letter-spacing: -.01em; }
.pc__t a { background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease), color .2s; }
.pc:hover .pc__t a { background-size: 100% 2px; }
.pc__x { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.pc .meta { margin-top: 12px; }

.pc--std .pc__body { padding-top: 18px; }
.pc--std .pc__t { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.28; }

.pc--lead .pc__media { aspect-ratio: 16 / 9; }
.pc--lead .pc__body { padding-top: 24px; }
.pc--lead .pc__t { font-size: clamp(28px, 3.3vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; }
.pc--lead .pc__x { font-size: clamp(16px, 1.25vw, 18px); max-width: 720px; }
.grain--dark .pc__x { color: var(--muted-d); }

.pc--row { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pc--row .pc__media { aspect-ratio: 1; }
.pc--row .kicker { margin-bottom: 6px; font-size: 10.5px; }
.pc--row .pc__t { font-size: 15.5px; line-height: 1.32; }
.pc--row .meta { margin-top: 8px; }

.pc--num { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pc__n { font-size: 34px; font-weight: 900; line-height: .9; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.2px var(--red); }
.pc--num .kicker { margin-bottom: 6px; font-size: 10.5px; }
.pc--num .pc__t { font-size: 16.5px; line-height: 1.32; }
.pc--num .meta { margin-top: 8px; }
.grain--dark .pc--num { border-bottom-color: var(--line-d); }
.grain--dark .pc__n { -webkit-text-stroke-color: var(--red-2); }

.pc--mini { padding: 15px 0; border-top: 1px solid var(--line); }
.pc--mini .pc__t { font-size: 15.5px; line-height: 1.35; }
.pc--mini .meta { margin-top: 6px; }

.cards { display: grid; gap: 44px var(--gap); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Lead story over its photo */
.pc--hero .pc__media { aspect-ratio: 16 / 9; }
.pc--hero .pc__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(16, 10, 8, 0) 30%, rgba(16, 10, 8, .55) 62%, rgba(16, 10, 8, .92) 100%); pointer-events: none; }
.pc--hero .pc__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: clamp(22px, 2.6vw, 38px); pointer-events: none; }
.pc--hero .pc__body a { pointer-events: auto; }
.pc--hero .kicker { padding: 6px 10px; background: var(--red); color: #fff !important; }
.pc--hero .pc__t { max-width: 880px; font-size: clamp(24px, 2.5vw, 38px); font-weight: 800; letter-spacing: -.028em; line-height: 1.1; color: #fff; }
.pc--hero .pc__t a { background-image: linear-gradient(#fff, #fff); }
.pc--hero .pc__x { max-width: 680px; color: rgba(255, 255, 255, .82); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc--hero .meta { color: rgba(255, 255, 255, .7); }

/* ---------- Home: lead ---------- */
.lead { padding: clamp(24px, 2.6vw, 36px) 0 clamp(48px, 5.6vw, 80px); }
.lead__grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(28px, 3.4vw, 56px); }
.lead__side .numlist li:last-child .pc--num { border-bottom: 0; }

/* ---------- Home: intro / stats / author ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4.4vw, 72px); align-items: center; }
.intro__txt .display { margin: 18px 0 24px; }
.intro__txt .btns { margin-top: 34px; }
.intro__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--fog-2); }
.intro__media img { width: 100%; height: 100%; object-fit: cover; }
.intro__media::before { content: ""; position: absolute; z-index: 4; left: 0; bottom: 0; width: 34%; height: 8px; background: var(--red); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(48px, 6vw, 88px) 0; background: var(--ink); color: #fff; position: relative; isolation: isolate; }
.stats::after { content: ""; position: absolute; inset: 0; background-image: var(--noise-d); opacity: .085; pointer-events: none; }
.stats li { display: flex; align-items: center; gap: 22px; padding: clamp(26px, 3vw, 40px); border-left: 1px solid var(--line-d); }
.stats li:first-child { border-left: 0; }
.stats strong { font-size: clamp(42px, 4.6vw, 68px); font-weight: 900; letter-spacing: -.045em; line-height: 1; }
.stats strong em { font-style: normal; color: var(--red-2); }
.stats span { display: grid; gap: 4px; font-size: 13px; color: var(--muted-d); font-weight: 500; }
.stats b { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; }

.author { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(28px, 4.4vw, 72px); align-items: start; }
.author__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--fog-2); }
.author__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.author__t { margin: 16px 0 20px; font-size: clamp(26px, 2.8vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.author__p { font-size: 17px; line-height: 1.75; color: #281d18; }
.pull { position: relative; margin: 32px 0; padding: 26px 0 26px 30px; border-left: 4px solid var(--red); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pull p { font-size: clamp(20px, 2vw, 27px); font-weight: 700; line-height: 1.32; letter-spacing: -.02em; }
.pull cite { display: block; margin-top: 12px; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.pull cite::before { content: "— "; }
.author__sign { display: flex; align-items: center; gap: 20px; }
.author__sig { width: 120px; height: auto; }
.author__sign p { display: grid; gap: 2px; }
.author__sign strong { font-size: 17px; font-weight: 800; }
.author__sign span { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Home: directions ---------- */
.dirs__track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.dir { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.dir:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 30px 50px -36px rgba(16, 10, 8, .45); }
.dir__img { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.dir__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .6s; }
.dir:hover .dir__img img { transform: scale(1.04); filter: grayscale(0); }
.dir__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 30px 28px 28px; }
.dir__n { position: absolute; top: -26px; left: 28px; z-index: 4; display: grid; place-items: center; width: 52px; height: 52px; background: var(--red); color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .04em; }
.dir__t { margin: 16px 0 12px; font-size: 24px; letter-spacing: -.025em; }
.dir__x { color: var(--muted); font-size: 15px; line-height: 1.65; }
.dir .more { margin-top: auto; padding-top: 22px; }

/* ---------- Home: topics ---------- */
.topics__track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.topic__h { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.topic__h a { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.topic__h .i { width: 16px; height: 16px; color: var(--red); transition: transform .3s var(--ease); }
.topic__h a:hover .i { transform: translateX(4px); }
.topic .pc--std { margin-bottom: 6px; }
.topic .pc--std .pc__t { font-size: 18px; }
.topic .pc--std .meta span { display: none; }
.topic .kicker { display: none; }

.index { margin-top: clamp(56px, 6vw, 88px); }
.index__h { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 3px solid var(--ink); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.index__h::before { content: ""; width: 9px; height: 9px; background: var(--red); }
.index__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--gap); }
.index__list a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; transition: color .2s, padding .25s var(--ease); }
.index__list em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.index__list a:hover { color: var(--red); padding-left: 8px; }

/* ---------- Home: magazine ---------- */
.mag__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.mag .display { margin: 20px 0 22px; }
.mag__now { display: grid; gap: 6px; margin: 30px 0 32px; padding: 18px 0 18px 22px; border-left: 4px solid var(--red); }
.mag__now span { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red-2); }
.mag__now strong { font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; line-height: 1.35; }
.mag__cover { position: relative; justify-self: center; width: min(100%, 380px); box-shadow: 30px 30px 0 -1px var(--red); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.mag__cover:hover { transform: translate(-6px, -6px); box-shadow: 36px 36px 0 -1px var(--red); }
.mag__cover img { width: 100%; }
.mag__more { margin-top: clamp(56px, 6vw, 88px); }
.mag__more .side-h { margin-bottom: 26px; }
.issues { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * var(--gap)) / 6); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.issues::-webkit-scrollbar { display: none; }

.ic { scroll-snap-align: start; }
.ic__cover { position: relative; display: block; aspect-ratio: 520 / 690; overflow: hidden; background: var(--ink-3); }
.ic__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ic__open { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; transform: translateY(100%); transition: transform .35s var(--ease); }
.ic__open .i { width: 16px; height: 16px; }
.ic:hover .ic__cover img { transform: scale(1.04); }
.ic:hover .ic__open, .ic__cover:focus-visible .ic__open { transform: none; }
.ic__no { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.ic__no span { color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: none; }
.ic__t { margin-top: 8px; font-size: 14.5px; font-weight: 700; line-height: 1.35; letter-spacing: -.005em; }
.ic__t a:hover { color: var(--red); }
.grain--dark .ic__no { border-top-color: var(--line-d); color: var(--red-2); }
.grain--dark .ic__no span { color: var(--muted-d); }
.grain--dark .ic__t a:hover { color: var(--red-2); }

/* ---------- Home: supporters ---------- */
.banners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.banner { position: relative; display: block; border: 1px solid var(--line); overflow: hidden; background: var(--fog); }
.banner img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .8s var(--ease); }
.banner:hover img { transform: scale(1.03); }
.banner::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--red); opacity: 0; transition: opacity .3s; }
.banner:hover::after { opacity: 1; }
.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos li { display: grid; place-items: center; min-height: 128px; padding: 24px; border-left: 1px solid var(--line); }
.logos li:first-child { border-left: 0; }
.logos img { max-height: 54px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.logos li:hover img { filter: none; opacity: 1; }

/* ---------- Home: contact ---------- */
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); background: #fff; }
.contact a { position: relative; display: grid; align-content: start; gap: 8px; min-height: 190px; padding: 30px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); transition: background .3s, color .3s; }
.contact .i { width: 28px; height: 28px; color: var(--red); margin-bottom: 18px; transition: color .3s; }
.contact small { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.contact span { font-size: clamp(17px, 1.5vw, 21px); font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.contact a:hover { background: var(--ink); color: #fff; }
.contact a:hover .i { color: var(--red-2); }
.contact a:hover small { color: var(--muted-d); }

/* ---------- Page head ---------- */
.phead { padding: clamp(36px, 5vw, 72px) 0 clamp(32px, 4.4vw, 60px); border-bottom: 1px solid var(--line); }
.phead--dark { border-bottom: 0; }
.crumbs { margin-bottom: 26px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.crumbs a:hover { color: var(--red); }
.phead--dark .crumbs { color: var(--muted-d); }
.phead--dark .crumbs a:hover { color: #fff; }
.phead__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.phead__t { margin-top: 16px; max-width: 980px; font-size: clamp(34px, 5vw, 68px); font-weight: 900; letter-spacing: -.035em; line-height: 1.02; }
.phead__count { display: grid; text-align: right; flex: none; padding-left: 28px; border-left: 1px solid var(--line-d); }
.phead__count strong { font-size: clamp(36px, 4vw, 56px); font-weight: 900; line-height: 1; letter-spacing: -.04em; color: var(--red-2); }
.phead__count span { margin-top: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d); }
.phead__x { max-width: 760px; margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.phead--dark .phead__x { color: var(--muted-d); }
.phead .sform { margin-top: 28px; max-width: 720px; }

/* ---------- Archive ---------- */
.arch { padding: clamp(40px, 5vw, 72px) 0 var(--sec); }
.arch__lead { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 3.6vw, 56px); padding-bottom: clamp(40px, 4.6vw, 64px); margin-bottom: clamp(40px, 4.6vw, 64px); border-bottom: 1px solid var(--line); }
.arch__lead .pc--lead .pc__t { font-size: clamp(26px, 2.8vw, 40px); }
.arch__side .pc--row:first-child { padding-top: 0; }
.arch__empty { padding: 48px 0; font-size: 18px; color: var(--muted); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: clamp(48px, 5vw, 72px); }
.pager .page-numbers { display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 12px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 800; transition: background .2s, color .2s, border-color .2s; }
.pager .page-numbers:hover { border-color: var(--ink); }
.pager .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .page-numbers.dots { border-color: transparent; }
.pager .i { width: 18px; height: 18px; }

.sform { display: flex; border: 1.5px solid var(--ink); background: #fff; }
.sform input { flex: 1; min-width: 0; height: 54px; padding: 0 18px; border: 0; outline: 0; font-size: 16px; font-weight: 500; }
.sform .btn { height: auto; border-width: 0; }

/* ---------- Single article ---------- */
.art-head { padding: clamp(32px, 4.4vw, 64px) 0 clamp(28px, 3.4vw, 44px); }
.art-head__in { max-width: 980px; }
.art-head .crumbs { margin-bottom: 22px; }
.art-head h1 { font-size: clamp(30px, 4.4vw, 58px); font-weight: 900; letter-spacing: -.035em; line-height: 1.04; }
.art-head__ex { max-width: 820px; margin-top: 20px; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; color: var(--muted); font-weight: 500; }
.art-head__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 30px; padding: 14px 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); }
.art-head__bar .meta { font-size: 13px; }
.share { display: flex; align-items: center; gap: 6px; }
.share > span { margin-right: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.share a, .share button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); transition: background .2s, color .2s, border-color .2s; }
.share a:hover, .share button:hover, .share .is-copied { background: var(--ink); border-color: var(--ink); color: #fff; }
.share .i { width: 16px; height: 16px; }
.art-hero { margin-bottom: clamp(36px, 4.4vw, 60px); }
.art-hero img { width: 100%; max-height: 760px; object-fit: cover; }
.art-hero figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.art { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(36px, 5vw, 88px); align-items: start; padding-bottom: var(--sec); }
.art__aside { position: sticky; top: calc(var(--adm) + 92px); display: grid; gap: 40px; }
.art__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 3px solid var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { padding: 7px 12px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; transition: background .2s, color .2s, border-color .2s; }
.tags a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.aside-issue { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; padding: 18px; background: var(--ink); color: #fff; }
.aside-issue img { width: 100%; }
.aside-issue span { display: grid; gap: 6px; font-size: 14px; font-weight: 700; line-height: 1.35; }
.aside-issue em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red-2); }
.aside-issue b { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.aside-issue b .i { width: 15px; height: 15px; color: var(--red-2); }
.related { padding: var(--sec) 0; }

/* ---------- Prose (articles, pages) ---------- */
.prose { font-size: 18px; line-height: 1.78; color: #241a16; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.15em; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.8em; letter-spacing: -.025em; line-height: 1.18; color: var(--ink); }
.prose h2 { font-size: clamp(24px, 2.2vw, 31px); }
.prose h3 { font-size: clamp(20px, 1.8vw, 24px); }
.prose h4 { font-size: 19px; }
.prose a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose strong { font-weight: 700; color: var(--ink); }
.prose ul, .prose ol { padding-left: 0; }
.prose ul li, .prose ol li { position: relative; padding-left: 28px; }
.prose ul li + li, .prose ol li + li { margin-top: .45em; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; background: var(--red); }
.prose ol { counter-reset: ol; }
.prose ol li { counter-increment: ol; }
.prose ol li::before { content: counter(ol) "."; position: absolute; left: 0; font-weight: 800; color: var(--red); }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 26px; border-left: 4px solid var(--red); font-size: 1.18em; font-weight: 600; line-height: 1.5; color: var(--ink); }
.prose blockquote p + p { margin-top: .6em; }
.prose img, .prose .wp-block-image img { height: auto; }
.prose figure figcaption, .prose .wp-caption-text { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.prose .alignleft { float: left; margin: .3em 1.6em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.6em; max-width: 50%; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--fog); font-weight: 800; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose::after { content: ""; display: table; clear: both; }

/* Magazine embed in articles (old flipbooks) */
.mt-issue-embed { margin: 2.2em auto; max-width: 400px; text-align: left; }
.mt-issue-embed__cover { position: relative; display: block; overflow: hidden; box-shadow: 18px 18px 0 -1px var(--red); text-decoration: none !important; }
.mt-issue-embed__cover img { width: 100%; margin: 0 !important; }
.mt-issue-embed__btn { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; height: 52px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; transition: background .25s; }
.mt-issue-embed__cover:hover .mt-issue-embed__btn { background: var(--red); }
.mt-issue-embed figcaption { display: grid; gap: 8px; margin-top: 30px; font-size: 15px; line-height: 1.4; }
.mt-issue-embed figcaption a { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Pages (incl. Elementor layouts) ---------- */
.page-body { padding: clamp(40px, 5vw, 72px) 0 var(--sec); }
.page-body .prose { max-width: 820px; }
.page-el { padding-bottom: var(--sec); }
.page-el .elementor-widget-heading .elementor-heading-title { font-family: var(--f) !important; letter-spacing: -.02em; }
.page-el .elementor-button { border-radius: 0 !important; font-family: var(--f) !important; font-weight: 800 !important; letter-spacing: .12em; text-transform: uppercase; font-size: 12.5px !important; }
.page-el .elementor-widget-text-editor { font-family: var(--f); }
.page-el img { border-radius: 0 !important; }
.page-el details.mt-acc { border-top: 1px solid var(--line); }
.page-el details.mt-acc:last-of-type { border-bottom: 1px solid var(--line); }
.page-el details.mt-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; cursor: pointer; list-style: none; }
.page-el details.mt-acc summary::-webkit-details-marker { display: none; }
.page-el details.mt-acc summary::after { content: "+"; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-2); font-weight: 600; flex: none; }
.page-el details.mt-acc[open] summary::after { content: "–"; background: var(--red); border-color: var(--red); color: #fff; }
.page-el details.mt-acc > div { padding: 0 0 22px; }
.elementor-element, .elementor-widget-container { min-width: 0; }

/* ---------- Magazine archive ---------- */
.mlead { padding: clamp(40px, 5vw, 80px) 0; }
.mlead__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.mlead .mag__cover { justify-self: start; width: min(100%, 420px); }
.mlead__t { margin: 18px 0 18px; font-size: clamp(28px, 3.4vw, 48px); font-weight: 900; letter-spacing: -.035em; line-height: 1.05; }
.mlead .btns { margin-top: 30px; }
.mgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 48px var(--gap); }

.issue-page { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: start; padding: clamp(40px, 5vw, 80px) 0 var(--sec); }
.issue-page .mag__cover { justify-self: start; }

/* ---------- 404 ---------- */
.nf { padding: var(--sec) 0; }
.nf__code { font-size: clamp(110px, 18vw, 260px); font-weight: 900; line-height: .82; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.nf__code span { color: var(--red); -webkit-text-stroke: 0; }
.nf h1 { margin: 26px 0 14px; font-size: clamp(26px, 3vw, 40px); }
.nf .sform { max-width: 620px; margin: 28px 0 64px; }

/* ---------- Footer ---------- */
.ftr { padding: clamp(56px, 6vw, 88px) 0 28px; }
.ftr__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; padding-bottom: 36px; border-bottom: 1px solid var(--line-d); }
.ftr__logo { color: var(--red); }
.ftr__logo .logo { width: clamp(220px, 26vw, 340px); }
.ftr__claim { max-width: 460px; font-size: 15px; line-height: 1.6; color: var(--muted-d); }
.ftr__grid { position: relative; z-index: 4; display: grid; grid-template-columns: 1fr 1.2fr 1.3fr 1fr; gap: 40px var(--gap); padding: 44px 0; }
.ftr__h { margin-bottom: 18px; color: var(--red-2); }
.ftr__links li + li { margin-top: 10px; }
.ftr__links a { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .86); transition: color .2s, padding .25s var(--ease); }
.ftr__links a:hover { color: #fff; padding-left: 6px; }
.ftr__contact { display: grid; gap: 14px; margin-bottom: 22px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .86); }
.ftr__contact li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; }
.ftr__contact .i { width: 18px; height: 18px; color: var(--red-2); margin-top: 2px; }
.ftr__contact a:hover { color: #fff; }
.ftr .socials a { color: #fff; border-color: var(--line-d); }
.ftr__cover { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: start; }
.ftr__cover img { width: 100%; transition: transform .4s var(--ease); }
.ftr__cover:hover img { transform: translateY(-4px); }
.ftr__cover span { display: grid; gap: 6px; font-size: 14px; font-weight: 600; line-height: 1.4; color: rgba(255, 255, 255, .86); }
.ftr__cover b { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.ftr__bottom { position: relative; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 24px; border-top: 1px solid var(--line-d); font-size: 12.5px; color: var(--muted-d); }
.ftr__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ftr__legal a:hover { color: #fff; }
.ftr__up { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.ftr__up .i { width: 16px; height: 16px; transform: rotate(-90deg); color: var(--red-2); }

/* ---------- Reader ---------- */
.reader { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto 1fr auto; background: #0b0706; color: #fff; }
.reader__top { display: flex; align-items: center; gap: 18px; padding: 12px var(--pad); border-bottom: 1px solid var(--line-d); }
.reader__title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 700; font-size: 15px; }
.reader__count { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--red-2); }
.reader__tools { display: flex; gap: 6px; }
.reader__stage { position: relative; display: grid; place-items: center; padding: 18px 76px; overflow: hidden; }
.reader__book { margin: 0 auto; }
.reader__page { background: #fff; }
.reader__page canvas, .reader__page img { width: 100%; height: 100%; display: block; }
.reader__nav { position: absolute; top: 50%; z-index: 5; display: grid; place-items: center; width: 52px; height: 52px; margin-top: -26px; border: 1px solid var(--line-d); color: #fff; transition: background .2s, border-color .2s; }
.reader__nav:hover { background: var(--red); border-color: var(--red); }
.reader__prev { left: 14px; }
.reader__next { right: 14px; }
.reader__load { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: #0b0706; z-index: 6; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.reader__err { display: grid; gap: 16px; justify-items: center; text-align: center; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--line-d); border-top-color: var(--red); animation: mt-spin .8s linear infinite; }
@keyframes mt-spin { to { transform: rotate(360deg); } }
.reader__thumbs { display: flex; gap: 8px; padding: 10px var(--pad) 14px; overflow-x: auto; border-top: 1px solid var(--line-d); scrollbar-width: thin; }
.reader__thumbs button { flex: none; width: 46px; opacity: .5; border: 2px solid transparent; transition: opacity .2s, border-color .2s; }
.reader__thumbs button.is-on { opacity: 1; border-color: var(--red); }
.reader__thumbs img, .reader__thumbs canvas { width: 100%; display: block; }
body.reader-open { overflow: hidden; }

/* ---------- Language switcher (GTranslate drives the translation; its own popup is hidden) ---------- */
.lang-slot:empty { display: none; }
.gtranslate_wrapper.is-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Rails (horizontal sliders) ---------- */
.rail { position: relative; }
.rail-track { scrollbar-width: none; }
.rail-track::-webkit-scrollbar { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
	.mast__nav .menu > li > a { padding: 0 10px; letter-spacing: .07em; }
	.mast__nav .menu > li > a::after { left: 10px; right: 10px; }
	.mast__issue span { display: none; }
	.mast__issue { width: 44px; padding: 0; }
	.topics__track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px var(--gap); }
	.mgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.issues { grid-auto-columns: calc((100% - 4 * var(--gap)) / 5); }
	.ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
	:root { --sec: clamp(56px, 11vw, 80px); }
	.topbar__tag { display: none; }
	.topbar .socials { display: none; }
	.topbar__in { min-height: 34px; }
	.mast__nav, .mast__nav + .mast__act { border: 0; padding: 0; }
	.mast__nav { display: none; }
	.mast__act { margin-left: auto; }
	.mast__burger { display: inline-grid; }
	.mast__in { height: 64px; }
	.mast.is-stuck .mast__in { height: 58px; }
	.mast__logo .logo, .mast.is-stuck .mast__logo .logo { width: 150px; }
	.mast__issue { display: none; }
	.cats__nav { display: none; }
	.cats__label { display: none; }
	.cats__in { height: 46px; padding-right: 0; }
	.cats__track { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }

	.pc--hero .pc__media::before { display: none; }
	.pc--hero .pc__body { position: static; padding: 22px 0 0; }
	.pc--hero .pc__t { font-size: clamp(26px, 5.4vw, 36px); }
	.pc--hero .pc__x { -webkit-line-clamp: 3; color: var(--muted-d); }
	.lead__grid, .intro, .author, .mag__grid, .arch__lead, .art, .mlead__grid, .issue-page { grid-template-columns: minmax(0, 1fr); }
	.intro__media { order: -1; }
	.author__photo { max-width: 420px; aspect-ratio: 1; }
	.stats { grid-template-columns: 1fr; }
	.stats li { border-left: 0; border-top: 1px solid var(--line-d); padding: 22px 24px; }
	.stats li:first-child { border-top: 0; }
	.mag__cover { width: min(70%, 320px); box-shadow: 18px 18px 0 -1px var(--red); justify-self: start; }

	/* sliders on touch screens */
	.rail { margin: 0 calc(var(--pad) * -1); }
	.dirs__track, .topics__track, .banners { display: grid; grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); padding: 0 var(--pad) 6px; }
	.dirs__track { grid-auto-columns: min(82vw, 380px); }
	.topics__track { grid-auto-columns: min(82vw, 360px); gap: 28px; }
	.banners { grid-auto-columns: min(76vw, 340px); }
	.dirs__track > *, .topics__track > *, .banners > * { scroll-snap-align: start; }
	.issues { grid-auto-columns: min(42vw, 200px); padding: 0 var(--pad); scroll-padding: 0 var(--pad); }
	.mag__more .rail { margin: 0 calc(var(--pad) * -1); }

	.index__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.logos li:nth-child(4) { border-left: 0; }
	.logos li:nth-child(n+4) { border-top: 1px solid var(--line); }
	.contact { grid-template-columns: 1fr; }
	.contact a { min-height: 0; padding: 24px; grid-template-columns: 34px 1fr; column-gap: 16px; }
	.contact .i { grid-row: span 2; margin: 2px 0 0; }
	.cards--3, .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.art__aside { position: static; }
	.phead__count { display: none; }
	.ftr__top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
	body { font-size: 15.5px; }
	.topbar__in { justify-content: space-between; }
	.sh { flex-direction: column; align-items: flex-start; }
	.lead .pc--hero .pc__media { margin: 0 calc(var(--pad) * -1); aspect-ratio: 4 / 3; }
	.pc--lead .pc__t { font-size: 28px; }
	.pc--num { grid-template-columns: 44px 1fr; }
	.pc__n { font-size: 28px; }
	.display { font-size: clamp(36px, 11vw, 52px); }
	.btns .btn { flex: 1 1 auto; }
	.stats strong { font-size: 46px; }
	.pull { padding-left: 20px; }
	.cards--3, .cards--4 { grid-template-columns: 1fr; gap: 36px; }
	.mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
	.index__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
	.index__list a { padding: 11px 0; font-size: 14px; }
	.logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.logos li { min-height: 100px; border-left: 0 !important; border-top: 1px solid var(--line); }
	.logos li:nth-child(even) { border-left: 1px solid var(--line) !important; }
	.logos li:first-child, .logos li:nth-child(2) { border-top: 0; }
	.art-head__bar { flex-direction: column; align-items: flex-start; }
	.prose { font-size: 17px; }
	.prose .alignleft, .prose .alignright { float: none; margin: 1em 0; max-width: 100%; }
	.search__row { flex-direction: column; border: 0; }
	.search__row input { border-bottom: 3px solid var(--ink); height: 60px; }
	.search__row .btn { width: 100%; }
	.search__x { top: -36px; }
	.ftr__grid { grid-template-columns: 1fr; gap: 36px; }
	.ftr__up { margin-left: 0; }
	.reader__stage { padding: 10px 8px 64px; }
	.reader__nav { top: auto; bottom: 8px; margin-top: 0; }
	.reader__prev { left: calc(50% - 60px); }
	.reader__next { right: calc(50% - 60px); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.art-head h1 { font-size: clamp(30px, 4vw, 52px); }
.art-hero img { max-height: 620px; }
.nf .sh { margin-top: 8px; }

/* Elementor pages: one clean flow, brand buttons */
.page-el .elementor-widget.elementor-absolute, .page-el .elementor-widget.elementor-fixed { position: relative !important; inset: auto !important; top: auto !important; left: auto !important; right: auto !important; bottom: auto !important; transform: none !important; width: auto !important; max-width: 100% !important; margin-top: 12px !important; }
.page-el .elementor-button, .page-el .elementor-button-link { background: var(--ink) !important; color: #fff !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 15px 24px !important; line-height: 1.3 !important; transition: background .25s !important; }
.page-el .elementor-button:hover, .page-el .elementor-button-link:hover { background: var(--red) !important; color: #fff !important; }
.page-el .elementor-button .elementor-button-icon { color: var(--red-2) !important; fill: currentColor; }
.page-el .elementor-button:hover .elementor-button-icon { color: #fff !important; }
.page-el .elementor-heading-title { color: var(--ink); }
.page-el .elementor-widget-text-editor { color: #281d18; line-height: 1.7; }
.page-el .elementor-widget-text-editor a { color: var(--red); }
.page-el .elementor-widget-image img { width: auto; max-width: 100%; }
.reader { top: var(--adm); }
.page-el .elementor-absolute > .elementor-widget-container, .page-el .elementor-fixed > .elementor-widget-container { margin: 0 !important; padding-top: 0 !important; }
@media (max-width: 980px) { .mlead .mag__cover, .issue-page .mag__cover { width: min(76%, 320px); } }


/* ==========================================================================
   v3 – welcoming hero, colour photos with a light newsprint touch,
   health library, inner pages
   ========================================================================== */
:root {
	--paper-warm: #f6eee4;
	--halftone: radial-gradient(circle, rgba(24, 18, 12, .32) .6px, transparent 1px);
}

/* Photos: full colour, slightly softened, with a very fine print texture */
.print { position: relative; overflow: hidden; background: var(--fog-2); }
.print img, .pc__media img { filter: saturate(.92) contrast(1.04); transition: filter .5s var(--ease), transform .9s var(--ease); }
.print::after, .pc__media::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background-image: var(--halftone), var(--noise-l); background-size: 3px 3px, 240px 240px; mix-blend-mode: multiply; opacity: .32; transition: opacity .5s var(--ease); }
.pc:hover .pc__media img, a:hover > .print img, .print:hover img { filter: none; }
.pc:hover .pc__media::before, .print:hover::after { opacity: .12; }
.pc--hero .pc__media::before { z-index: 1; opacity: 1; background: linear-gradient(180deg, rgba(16, 10, 8, 0) 30%, rgba(16, 10, 8, .55) 62%, rgba(16, 10, 8, .92) 100%), var(--halftone); background-size: auto, 3px 3px; mix-blend-mode: normal; }
.pc--hero:hover .pc__media::before { opacity: 1; }

/* Hero */
.hero { background: var(--paper-warm); padding: clamp(36px, 4.6vw, 72px) 0 clamp(44px, 5vw, 80px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.hero__t { margin: 20px 0 22px; font-size: clamp(40px, 5.2vw, 76px); font-weight: 900; letter-spacing: -.04em; line-height: .96; }
.hero__lede { max-width: 540px; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; color: #3a2c25; font-weight: 500; }
.hero .btns { margin-top: 32px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-top: clamp(32px, 3.6vw, 48px); border-top: 1px solid var(--line-2); }
.hero__stats li { padding: 18px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--line-2); }
.hero__stats li:last-child { border-right: 0; margin-right: 0; }
.hero__stats strong { display: block; font-size: clamp(28px, 2.6vw, 40px); font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.hero__stats strong em { font-style: normal; color: var(--red); }
.hero__stats span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); font-weight: 500; line-height: 1.35; }
.hero__stats b { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.hero__media { position: relative; padding: 0 0 56px 56px; }
.hero__media::before { content: ""; position: absolute; left: 0; bottom: 0; width: 44%; height: 58%; background: var(--red); }
.hero__img { position: relative; z-index: 1; aspect-ratio: 5 / 4; box-shadow: 0 40px 60px -40px rgba(30, 20, 10, .45); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__issue { position: absolute; z-index: 3; left: 0; bottom: 0; display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; width: min(400px, 80%); padding: 14px 20px 14px 14px; background: #fff; box-shadow: 0 24px 40px -24px rgba(16, 10, 8, .45); transition: transform .4s var(--ease); }
.hero__issue:hover { transform: translateY(-4px); }
.hero__cover img { width: 100%; height: auto; box-shadow: 0 6px 14px -6px rgba(16, 10, 8, .4); }
.hero__it { display: grid; gap: 6px; }
.hero__it em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.hero__it strong { font-size: 14.5px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero__it b { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero__it b .i { width: 15px; height: 15px; color: var(--red); transition: transform .3s var(--ease); }
.hero__issue:hover b .i { transform: translateX(4px); }
.sh--lead { margin-bottom: clamp(24px, 3vw, 36px); }
.lead { padding-top: clamp(44px, 5vw, 72px); }

/* Library – MedTalks Здраве */
.lib-hero { background: var(--paper-warm); padding: clamp(32px, 4vw, 60px) 0 clamp(32px, 3.6vw, 52px); }
.lib-hero .crumbs { margin-bottom: 22px; }
.lib-hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px 56px; flex-wrap: wrap; }
.lib-hero__t { margin: 16px 0 14px; font-size: clamp(36px, 5vw, 68px); font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.lib-hero__l { display: inline-grid; place-items: center; min-width: 1.1em; padding: 0 .12em; background: var(--red); color: #fff; }
.lib-hero__lede { font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.01em; color: #3a2c25; }
.rot { display: inline-block; color: var(--red); font-weight: 800; border-bottom: 3px solid var(--red); animation: mt-rot .45s var(--ease); }
@keyframes mt-rot { from { opacity: 0; transform: translateY(8px); } }
.lib-hero__stats { display: flex; gap: 0; margin: 0; }
.lib-hero__stats div { padding: 0 26px; border-left: 1px solid var(--line-2); }
.lib-hero__stats div:first-child { padding-left: 0; border-left: 0; }
.lib-hero__stats dt { font-size: clamp(30px, 3vw, 44px); font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.lib-hero__stats dd { margin: 6px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lib-hero__x { max-width: 820px; margin-top: 22px; color: var(--muted); font-size: 16px; line-height: 1.65; }

.lib-bar { position: sticky; top: calc(var(--adm) + 68px); z-index: 40; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px -22px rgba(16, 10, 8, .35); }
.lib-bar__in { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.lib-search { position: relative; flex: 0 0 300px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1.5px solid var(--ink); background: #fff; }
.lib-search .i { width: 18px; height: 18px; color: var(--red); }
.lib-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; font-weight: 500; }
.lib-search__res { position: absolute; top: calc(100% + 6px); left: -1.5px; right: -1.5px; z-index: 5; max-height: 60vh; overflow: auto; background: #fff; border: 1.5px solid var(--ink); box-shadow: 0 24px 40px -24px rgba(16, 10, 8, .45); }
.lib-search__res a { display: flex; align-items: baseline; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.lib-search__res a b { color: var(--red); font-weight: 800; }
.lib-search__res a i { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 800; color: var(--muted); }
.lib-search__res a:hover, .lib-search__res a.is-on { background: var(--ink); color: #fff; }
.lib-search__res a:hover b, .lib-search__res a.is-on b { color: var(--red-2); }
.lib-search__res li.is-empty { padding: 14px; color: var(--muted); font-size: 14px; }
.lib-letters { flex: 1; min-width: 0; display: flex; flex-wrap: nowrap; gap: 2px; justify-content: space-between; }
.lib-letters a, .lib-letters span { flex: 1 1 0; display: grid; place-items: center; min-width: 24px; max-width: 38px; height: 34px; font-size: 14px; font-weight: 800; transition: background .2s, color .2s; }
.lib-letters a:hover { background: var(--ink); color: #fff; }
.lib-letters a.is-on { background: var(--red); color: #fff; }
.lib-letters .is-off { color: var(--line-2); }

.lib-index { padding: clamp(40px, 4.6vw, 72px) 0 var(--sec); }
.lib-index__none { padding: 24px 0; font-size: 18px; color: var(--muted); }
.lib-groups { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 52px var(--gap); align-items: start; }
.lib-group { min-width: 0; scroll-margin-top: calc(var(--adm) + 160px); }
.lib-group__h a { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 8px; margin-bottom: 6px; border-bottom: 3px solid var(--ink); }
.lib-group__h span { font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -.04em; color: var(--red); }
.lib-group__h em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--muted); }
.lib-group__h a:hover span { color: var(--ink); }
.lib-group li a { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; line-height: 1.35; transition: color .2s, padding .25s var(--ease); }
.lib-group li a:hover { color: var(--red); padding-left: 6px; }
.lib-group li a mark { background: rgba(207, 63, 92, .16); color: inherit; }
.lib-ban { padding: 0 0 var(--sec); }
.lib-ban img { width: 100%; height: auto; }

.lib-letter { padding: clamp(32px, 4vw, 56px) 0 var(--sec); }
.lib-letter__grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.lib-list { position: sticky; top: calc(var(--adm) + 150px); max-height: calc(100vh - var(--adm) - 170px); display: flex; flex-direction: column; border-top: 3px solid var(--ink); }
.lib-list__h { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lib-list__h span { display: grid; place-items: center; width: 36px; height: 36px; background: var(--red); color: #fff; font-size: 20px; letter-spacing: 0; }
.lib-list ol { overflow: auto; overscroll-behavior: contain; counter-reset: li; scrollbar-width: thin; }
.lib-list li { counter-increment: li; }
.lib-list li a { display: grid; grid-template-columns: 30px 1fr; gap: 6px; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 600; line-height: 1.35; transition: background .2s, color .2s; }
.lib-list li a::before { content: counter(li, decimal-leading-zero); font-size: 11px; font-weight: 800; color: var(--muted); padding-top: 2px; }
.lib-list li a:hover { color: var(--red); }
.lib-list li a.is-on { background: var(--ink); color: #fff; padding-left: 8px; grid-template-columns: 22px 1fr; }
.lib-list li a.is-on::before { color: var(--red-2); }
.lib-entry { scroll-margin-top: calc(var(--adm) + 160px); }
.lib-entry__h { padding-bottom: 18px; }
.lib-entry__k { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.lib-entry__h h2 { margin-top: 10px; font-size: clamp(30px, 3.6vw, 50px); font-weight: 900; letter-spacing: -.035em; line-height: 1.04; }
.lib-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; }
.lib-tabs::-webkit-scrollbar { display: none; }
.lib-tabs button { position: relative; flex: none; padding: 14px 18px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.lib-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--red); transform: scaleX(0); transition: transform .3s var(--ease); }
.lib-tabs button:hover { color: var(--ink); }
.lib-tabs button.is-on { color: var(--ink); }
.lib-tabs button.is-on::after { transform: scaleX(1); }
.lib-panel { padding-top: 26px; max-width: 760px; }
.lib-panel__t { margin-top: 0 !important; }
.js .lib-panel__t { display: none; }
.js .lib-entry:not(.is-on), .js .lib-panel:not(.is-on) { display: none; }
.lib-entry__f { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 18px; border-top: 3px solid var(--ink); }
.lib-step { display: flex; align-items: center; gap: 14px; max-width: 48%; font-weight: 700; font-size: 15px; line-height: 1.3; }
.lib-step small { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lib-step .i { flex: none; width: 40px; height: 40px; padding: 10px; border: 1.5px solid var(--line-2); transition: background .2s, color .2s, border-color .2s; }
.lib-step:hover .i { background: var(--red); border-color: var(--red); color: #fff; }
.lib-step--next { margin-left: auto; text-align: right; }
.lib-nextl { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(48px, 5vw, 80px); padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.lib-nextl a { display: inline-flex; align-items: center; gap: 10px; }
.lib-nextl a b { font-size: 22px; color: var(--red); letter-spacing: 0; }
.lib-nextl .i { width: 18px; height: 18px; }
.lib-nextl__all { margin: 0 auto; padding: 12px 20px; background: var(--ink); color: #fff; }
.lib-nextl__all:hover { background: var(--red); }
.lib-nextl a:hover b { color: var(--ink); }

/* Older builder pages: one typographic system */
.page-el { font-size: 17px; line-height: 1.7; }
.page-el .elementor-section.elementor-section-boxed > .elementor-container { max-width: calc(var(--wrap) + 20px); }
.page-el h1.elementor-heading-title { font-size: clamp(30px, 4vw, 52px); font-weight: 900; letter-spacing: -.035em; line-height: 1.05; }
.page-el h2.elementor-heading-title { font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.page-el h3.elementor-heading-title { font-size: clamp(21px, 2vw, 28px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.page-el h4.elementor-heading-title { font-size: 20px; font-weight: 800; line-height: 1.25; }
.page-el h5.elementor-heading-title, .page-el h6.elementor-heading-title { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.page-el .elementor-widget-text-editor p { margin: 0 0 1em; }
.page-el .elementor-widget-text-editor ul, .page-el .elementor-widget-text-editor ol { margin: 0 0 1em; padding-left: 1.2em; }
.page-el .elementor-widget-text-editor ul li { list-style: square; }
.page-el .elementor-widget-text-editor ul li::marker { color: var(--red); }
/* tabs */
.page-el .elementor-tabs .elementor-tabs-wrapper { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line-2); }
.page-el .elementor-tabs .elementor-tab-title, .page-el .elementor-tabs .elementor-tab-mobile-title { position: relative; padding: 14px 18px !important; border: 0 !important; background: none !important; font-family: var(--f) !important; font-size: 12.5px !important; font-weight: 800 !important; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) !important; cursor: pointer; }
.page-el .elementor-tabs .elementor-tab-title::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--red); transform: scaleX(0); transition: transform .3s var(--ease); }
.page-el .elementor-tabs .elementor-tab-title.elementor-active, .page-el .elementor-tabs .elementor-tab-mobile-title.elementor-active { color: var(--ink) !important; }
.page-el .elementor-tabs .elementor-tab-title.elementor-active::after { transform: scaleX(1); }
.page-el .elementor-tabs .elementor-tab-title::before { display: none !important; }
.page-el .elementor-tabs .elementor-tabs-content-wrapper { border: 0 !important; }
.page-el .elementor-tabs .elementor-tab-content { padding: 24px 0 !important; border: 0 !important; color: #281d18 !important; font-family: var(--f) !important; font-size: 17px; line-height: 1.75; }
.page-el .elementor-tabs .elementor-tab-mobile-title { border-bottom: 1px solid var(--line) !important; }
.page-el .elementor-tabs .elementor-tab-mobile-title.elementor-active { color: var(--red) !important; }
/* accordion & toggle */
.page-el .elementor-accordion .elementor-accordion-item, .page-el .elementor-toggle .elementor-toggle-item { border: 0 !important; border-top: 1px solid var(--line) !important; }
.page-el .elementor-accordion .elementor-tab-title, .page-el .elementor-toggle .elementor-tab-title { padding: 18px 0 !important; border: 0 !important; background: none !important; font-family: var(--f) !important; font-size: 17px !important; font-weight: 800 !important; color: var(--ink) !important; }
.page-el .elementor-accordion .elementor-tab-title.elementor-active, .page-el .elementor-toggle .elementor-tab-title.elementor-active { color: var(--red) !important; }
.page-el .elementor-accordion .elementor-tab-content, .page-el .elementor-toggle .elementor-tab-content { padding: 0 0 22px !important; border: 0 !important; font-family: var(--f) !important; color: #281d18 !important; }
.page-el .elementor-accordion-icon, .page-el .elementor-toggle-icon { color: var(--red) !important; }
/* icon list, boxes, counters */
.page-el .elementor-icon-list-icon i, .page-el .elementor-icon-list-icon svg { color: var(--red) !important; fill: var(--red) !important; }
.page-el .elementor-icon-list-text { font-family: var(--f) !important; }
.page-el .elementor-image-box-title, .page-el .elementor-icon-box-title { font-family: var(--f) !important; font-weight: 800 !important; letter-spacing: -.02em; color: var(--ink) !important; }
.page-el .elementor-image-box-description, .page-el .elementor-icon-box-description { font-family: var(--f) !important; color: var(--muted) !important; }
.page-el .elementor-icon { color: var(--red) !important; border-color: var(--red) !important; }
.page-el .elementor-counter-number-wrapper { font-family: var(--f) !important; font-weight: 900 !important; letter-spacing: -.04em; color: var(--ink) !important; }
.page-el .elementor-counter-title { font-family: var(--f) !important; font-size: 12px !important; font-weight: 800 !important; letter-spacing: .12em; text-transform: uppercase; color: var(--muted) !important; }
.page-el .elementor-divider-separator { border-color: var(--line) !important; }
.page-el .elementor-widget-image a img, .page-el .elementor-image-carousel img { transition: transform .6s var(--ease); }
.page-el .elementor-swiper-button { width: 40px; height: 40px; display: grid; place-items: center; background: var(--ink); color: #fff !important; font-size: 16px !important; }
.page-el .elementor-swiper-button:hover { background: var(--red); }
.page-el .swiper-pagination-bullet-active { background: var(--red) !important; }

/* Partner logos above the footer on inner pages */
.partners { padding: 40px 0; border-top: 1px solid var(--line); background: #fff; }
.partners__in { display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: center; }
.partners__h { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); max-width: 160px; line-height: 1.5; }
.partners .logos { margin: 0; border: 0; }
.partners .logos li { min-height: 72px; padding: 10px 18px; }
.partners .logos img { max-height: 40px; }

@media (max-width: 1240px) {
	.lib-bar__in { flex-direction: column; align-items: stretch; padding: 12px var(--pad); gap: 10px; }
	.lib-search { flex: none; }
	.lib-letters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.lib-letters a, .lib-letters span { flex: none; width: 34px; }
	.lib-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
	.hero__grid { grid-template-columns: minmax(0, 1fr); }
	.hero__media { padding: 0 0 44px 26px; margin-top: 8px; }
	.hero__stats { grid-template-columns: repeat(3, 1fr); }
	.hero__stats li { padding-right: 12px; margin-right: 12px; }
	.lib-bar { top: calc(var(--adm) + 58px); }
	.lib-letter__grid { grid-template-columns: minmax(0, 1fr); }
	.lib-list { position: relative; top: 0; max-height: none; }
	.lib-list ol { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; }
	.lib-list li a, .lib-list li a.is-on { display: block; white-space: nowrap; padding: 9px 12px; border: 1px solid var(--line); }
	.lib-list li a::before { display: none; }
	.lib-hero__stats div { padding: 0 18px; }
	.lib-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
	.partners__in { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.lib-bar { top: 58px; }
	.hero__t { font-size: clamp(38px, 11vw, 52px); }
	.hero__issue { width: calc(100% - 26px); grid-template-columns: 64px 1fr; }
	.hero__stats strong { font-size: 26px; }
	.hero__stats span { font-size: 12px; }
	.hero__stats b { font-size: 10px; letter-spacing: .06em; }
	.hero__stats li { padding-right: 8px; margin-right: 8px; }
	.lib-groups { grid-template-columns: minmax(0, 1fr); }
	.lib-entry__f { flex-direction: column; }
	.lib-step { max-width: 100%; }
	.lib-nextl { flex-wrap: wrap; justify-content: center; }
	.lib-nextl__all { order: -1; width: 100%; text-align: center; }
}

/* v3.1 tuning */
.hero__t { font-size: clamp(36px, 3.9vw, 58px); overflow-wrap: normal; word-break: normal; hyphens: manual; }
.print::after, .pc__media::before { opacity: .16; background-size: 4px 4px, 240px 240px; }
.pc:hover .pc__media::before, .print:hover::after { opacity: .06; }
.pc--hero .pc__media::before { background-size: auto, 4px 4px; opacity: 1; }

/* v3.2 library: compact letter groups, preview on hover, empty letters */
.js .lib-groups:not(.is-q) .lib-group:not(.is-open) li.is-more { display: none; }
.lib-group.is-open li.is-more { animation: libIn .35s var(--ease) both; }
@keyframes libIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.lib-group__more { display: none; align-items: center; gap: 10px; width: 100%; padding: 12px 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); text-align: left; }
.js .lib-group__more { display: flex; }
.lib-groups.is-q .lib-group__more { display: none; }
.lib-group__more::before { content: ""; width: 18px; height: 18px; flex: none; background: linear-gradient(currentColor, currentColor) center / 10px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 10px no-repeat; border: 1.5px solid currentColor; transition: transform .3s var(--ease); }
.lib-group.is-open .lib-group__more::before { background: linear-gradient(currentColor, currentColor) center / 10px 2px no-repeat; }
.lib-group__more:hover { color: var(--ink); }
.lib-group.is-flash .lib-group__h a { animation: libFlash 1.2s var(--ease); }
@keyframes libFlash { 0%, 40% { background: rgba(207, 63, 92, .12); } 100% { background: transparent; } }
.lib-peek { position: absolute; z-index: 6; width: 320px; padding: 18px 20px 16px; background: #fff; border: 1.5px solid var(--ink); box-shadow: 0 28px 48px -28px rgba(16, 10, 8, .5); pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .22s var(--ease); }
.lib-peek.is-on { opacity: 1; transform: none; }
.lib-peek::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--red); }
.lib-peek__k { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.lib-peek__t { margin-top: 8px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.lib-peek__x { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.lib-peek__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lib-peek__go .i { width: 16px; height: 16px; color: var(--red); }
@media (hover: none), (pointer: coarse) { .lib-peek { display: none; } }
.lib-empty { padding: clamp(24px, 4vw, 56px) 0 8px; text-align: center; }
.lib-empty__l { display: inline-grid; place-items: center; width: 120px; height: 120px; margin-bottom: 22px; background: var(--ink); color: #fff; font-size: 64px; font-weight: 900; }
.lib-empty p { font-size: 18px; color: var(--muted); }
.lib-empty .btn { margin-top: 26px; }

/* v3.3 inner pages printed by the theme (inc/blocks.php) */
html.is-locked { overflow: hidden; }
.eb { padding-bottom: var(--sec); }
.eb-sec { padding-top: clamp(40px, 5vw, 72px); }
.eb-sec + .eb-sec > .wrap { padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.eb .wrap > * + *, .eb-col > * + * { margin-top: 24px; }
.eb .wrap > .eb-kicker + *, .eb-col > .eb-kicker + * { margin-top: 12px; }
.eb-row { display: grid; grid-template-columns: var(--cols); gap: clamp(28px, 4vw, 64px); align-items: start; }
.eb-row + .eb-row { margin-top: clamp(32px, 4vw, 56px); }
.eb-col { min-width: 0; }
.eb-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.eb-kicker::before { content: ""; width: 9px; height: 9px; background: var(--red); flex: none; }
.eb-h { color: var(--ink); }
.eb-h a:hover { color: var(--red); }
.eb-h--h2 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; max-width: 900px; }
.eb-h--h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.eb-h--h4 { font-size: 20px; font-weight: 800; line-height: 1.25; }
.eb-h--h5, .eb-h--h6 { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.eb-h--anim .rot { color: var(--red); }
.eb-h--num { font-size: clamp(40px, 4vw, 60px); font-weight: 900; letter-spacing: -.045em; line-height: 1; color: var(--ink); }
.eb-h--letter { font-size: 48px; font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--red); }
.eb .wrap > .eb-h--letter:not(:first-child) { margin-top: 48px; }
.eb .wrap > .eb-text, .eb .wrap > .eb-accs { max-width: 800px; }
.eb-text { font-size: 17px; line-height: 1.75; color: #281d18; }
.eb-row .eb-text { font-size: 16px; }
.eb-img img { width: auto; max-width: 100%; height: auto; max-height: 640px; }
.eb-row .eb-img img { max-height: none; }
.eb-img a { display: block; overflow: hidden; }
.eb-img a img { transition: transform .6s var(--ease); }
.eb-img a:hover img { transform: scale(1.03); }
.eb-img figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.eb-sec--first > .wrap > .eb-img:first-child img { width: 100%; max-height: 420px; object-fit: cover; }
.eb-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.eb-btns .btn .i { width: 18px; height: 18px; }

.eb-links { border-top: 3px solid var(--ink); }
.eb-links li > a, .eb-links li > span { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700; line-height: 1.3; }
.eb-links__img { width: 76px; height: 52px; flex: none; overflow: hidden; background: var(--fog); }
.eb-links__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.eb-links li > a .i { flex: none; width: 18px; height: 18px; margin-left: auto; color: var(--red); transition: transform .3s var(--ease); }
.eb-links li > a:hover { color: var(--red); }
.eb-links li > a:hover .i { transform: translateX(4px); }
.eb-links li > a:hover .eb-links__img img { transform: scale(1.08); }
.eb-links__n { flex: none; width: 30px; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--red); font-variant-numeric: tabular-nums; }
.eb-links--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }

.eb-gal { position: relative; }
.eb-gal__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.eb-gal__track::-webkit-scrollbar { display: none; }
.eb-gal__track li { flex: none; scroll-snap-align: start; }
.eb-gal__track img { display: block; width: auto; height: clamp(220px, 26vw, 380px); max-width: 80vw; object-fit: cover; }
.eb-row .eb-gal__track img { height: clamp(200px, 20vw, 300px); }
.eb-gal__track a { display: block; overflow: hidden; }
.eb-gal__track a img { transition: transform .6s var(--ease); }
.eb-gal__track a:hover img { transform: scale(1.03); }
.eb-gal__nav { display: flex; justify-content: flex-end; gap: 6px; margin-top: 14px; }
.eb-gal__b { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--ink); transition: background .2s, color .2s; }
.eb-gal__b:hover { background: var(--ink); color: #fff; }
.eb-gal__b .i { width: 18px; height: 18px; }

.eb-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px var(--gap); }
.eb-video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.eb-video iframe, .eb-video video, .eb-video__play, .eb-video__play img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.eb-video__play img { object-fit: cover; transition: transform .6s var(--ease), opacity .3s; opacity: .9; }
.eb-video__play:hover img { transform: scale(1.04); opacity: 1; }
.eb-video__btn { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; background: var(--red); color: #fff; transition: background .2s; }
.eb-video__play:hover .eb-video__btn { background: var(--ink); }
.eb-video__btn .i { width: 24px; height: 24px; }

.eb-tabs .lib-panel { max-width: 860px; }
.eb-accs { border-bottom: 1px solid var(--line); }
.eb-acc { border-top: 1px solid var(--line); }
.eb-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; cursor: pointer; list-style: none; }
.eb-acc summary::-webkit-details-marker { display: none; }
.eb-acc summary::after { content: "+"; display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 1px solid var(--line-2); font-weight: 600; transition: background .2s, color .2s; }
.eb-acc summary:hover { color: var(--red); }
.eb-acc[open] summary::after { content: "–"; background: var(--red); border-color: var(--red); color: #fff; }
.eb-acc > div { padding: 0 0 22px; max-width: 800px; }

.eb-box { height: 100%; border: 1px solid var(--line); background: #fff; transition: border-color .25s; }
.eb-box:hover { border-color: var(--ink); }
.eb-box__img { aspect-ratio: 4 / 3; overflow: hidden; }
.eb-box__img img { width: 100%; height: 100%; object-fit: cover; }
.eb-box__b { padding: 20px 22px 22px; }
.eb-box h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.eb-box h3 a:hover { color: var(--red); }
.eb-box__d { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--muted); }

.eb-cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 44px var(--gap); }
.eb-cal__h { display: flex; align-items: baseline; justify-content: space-between; padding-top: 14px; border-top: 3px solid var(--ink); font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.eb-cal__m.is-now .eb-cal__h { border-color: var(--red); color: var(--red); }
.eb-cal__m.is-now .eb-cal__h::after { content: "Този месец"; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eb-cal li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.eb-cal__d { display: grid; align-self: start; align-content: start; justify-items: center; padding: 8px 0 7px; background: var(--fog); font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eb-cal__d b { font-size: 24px; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.eb-cal__t { font-size: 16px; font-weight: 800; line-height: 1.3; }
.eb-cal__x { margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

.eb-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); }
.eb-quote { padding: 26px; background: var(--fog); }
.eb-quote blockquote { font-size: 16px; line-height: 1.65; }
.eb-quote blockquote::before { content: "“"; display: block; height: 34px; font-size: 64px; font-weight: 900; line-height: 1; color: var(--red); }
.eb-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.eb-quote figcaption b { display: block; font-size: 15px; color: var(--ink); }
.eb-quote__img img { width: 44px; height: 44px; object-fit: cover; }
.eb-social { display: flex; flex-wrap: wrap; gap: 8px; }
.eb-social a { display: inline-flex; padding: 9px 14px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.eb-social a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.eb-hr { border: 0; border-top: 1px solid var(--line); }
.eb-more { padding: var(--sec) 0; background: var(--fog); }

.lb { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(18, 12, 10, .94); }
.lb[hidden] { display: none; }
.lb img { max-width: min(92vw, 1400px); max-height: 86vh; width: auto; height: auto; }
.lb button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; color: #fff; font-size: 34px; line-height: 1; }
.lb button:hover { color: var(--red-2); }
.lb__x { top: 14px; right: 14px; }
.lb__p { left: 10px; top: 50%; margin-top: -26px; }
.lb__nx { right: 10px; top: 50%; margin-top: -26px; }
.lb__n { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: 12px; font-weight: 800; letter-spacing: .14em; }

@media (max-width: 980px) {
	.eb-row { grid-template-columns: minmax(0, 1fr); }
	.eb-links--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.eb-links--grid { grid-template-columns: minmax(0, 1fr); }
	.eb-gal__track img { height: 240px; }
	.eb-videos { grid-template-columns: minmax(0, 1fr); }
	.eb-cal { grid-template-columns: minmax(0, 1fr); }
}

/* v3.4 inner pages: narrow columns stack, text + picture pairs, wide boxes */
.eb-col { container-type: inline-size; }
@container (max-width: 520px) {
	.eb-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@container (max-width: 720px) {
	.eb-pair { grid-template-columns: minmax(0, 1fr); }
}
.eb-h--num { white-space: nowrap; }
.eb-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.eb-pair .eb-img img { width: 100%; max-height: 560px; object-fit: cover; }
.eb-pair--img-first .eb-img { order: -1; }
.eb .wrap > .eb-box--img { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.eb .wrap > .eb-box--img .eb-box__img { aspect-ratio: auto; min-height: 100%; }
.eb .wrap > .eb-box--img .eb-box__b { padding: clamp(22px, 3vw, 40px); }
.eb .wrap > .eb-box--img h3 { font-size: clamp(20px, 2vw, 26px); }
@media (max-width: 980px) {
	.eb-pair, .eb .wrap > .eb-box--img { grid-template-columns: minmax(0, 1fr); }
	.eb .wrap > .eb-box--img .eb-box__img { aspect-ratio: 16 / 9; }
}

/* v3.5 about page */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.about__text { font-size: 18px; }
.about__text > p:first-child { font-size: clamp(20px, 1.8vw, 24px); font-weight: 600; line-height: 1.55; letter-spacing: -.01em; color: var(--ink); }
.about__side { position: sticky; top: calc(var(--adm) + 96px); display: grid; gap: 28px; }
.about__photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__who figcaption { display: grid; gap: 2px; padding-top: 14px; border-top: 3px solid var(--ink); margin-top: -3px; position: relative; }
.about__who strong { font-size: 18px; font-weight: 800; }
.about__who span { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.about__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.about__stats li { padding: 14px 10px 0 0; }
.about__stats li + li { padding-left: 12px; border-left: 1px solid var(--line-2); }
.about__stats strong { display: block; font-size: 26px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.about__stats span { display: block; margin-top: 6px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.about__stats b { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.about__issue .ic { margin-top: 12px; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 16px; align-items: start; }
.about__issue .ic__cover { grid-row: span 2; }
@media (max-width: 980px) {
	.about { grid-template-columns: minmax(0, 1fr); }
	.about__side { position: static; }
	.about__photo { aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   v4 – soft corners and a little liquid glass
   Corners stay small on purpose: 4–6px on controls, 8–12px on pictures and cards.
   Glass is used only where something floats over content: the sticky header,
   the library bar, the issue card on the hero photo, play buttons, menus.
   ========================================================================== */
:root { --r-xs: 4px; --r-s: 6px; --r-m: 10px; --r-l: 14px; --glass: rgba(255, 255, 255, .66); --glass-d: rgba(18, 12, 10, .66); --glass-line: rgba(255, 255, 255, .55); --glass-blur: blur(18px) saturate(170%); }

/* controls */
.btn, .sq, .rail-btn, .socials a, .share a, .share button, .pager .page-numbers, .eb-gal__b, .reader__nav, .mnav__nav .sub-toggle, .lb button,
.lib-letters a, .lib-letters span, .eb-acc summary::after, .page-el details.mt-acc summary::after { border-radius: var(--r-s); }
.tags a, .pc--hero .kicker, .lib-hero__l, .lib-group__more::before { border-radius: var(--r-xs); }
.dir__n, .lib-list__h span, .eb-cal__d, .eb-links__img { border-radius: var(--r-s); }
.lib-empty__l { border-radius: var(--r-l); }
.sform, .lib-search, .mnav__search { border-radius: var(--r-s); overflow: hidden; }
.lib-search { overflow: visible; }
.lib-search__res { border-radius: var(--r-m); }
.mnav__search button { border-radius: 0; }

/* pictures and cards */
.pc__media, .ic__cover, .author__photo, .about__photo, .dir__img, .eb-box__img, .eb-video, .eb-gal__track a, .eb-gal__track img, .eb-quote, .lib-peek { border-radius: var(--r-m); overflow: hidden; }
.pc--hero .pc__media, .hero__img, .art-hero, .art-hero img { border-radius: var(--r-l); overflow: hidden; }
.hero__img img { border-radius: inherit; }
.eb-img img, .prose img, .lb img { border-radius: var(--r-m); }
.eb-sec--first > .wrap > .eb-img:first-child img { border-radius: var(--r-l); }
.dir, .eb-box { border-radius: var(--r-m); overflow: hidden; }
.mast__nav .sub-menu { border-radius: 0 0 var(--r-m) var(--r-m); overflow: hidden; }
.hero__media::before { border-radius: var(--r-m); }

/* liquid glass – only where something floats */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.mast.is-stuck { background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
	.lib-bar { background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
	.hero__issue { background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); border: 1px solid var(--glass-line); border-radius: var(--r-m); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 24px 44px -26px rgba(16, 10, 8, .5); }
	.eb-video__btn { background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%); border: 1px solid rgba(255, 255, 255, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 14px 30px -14px rgba(16, 10, 8, .6); }
	.eb-video__play:hover .eb-video__btn { background: var(--red); border-color: var(--red); }
	.lb button { background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .16); }
	.lib-peek { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-color: rgba(18, 12, 10, .85); }
}
.eb-video__btn { border-radius: var(--r-l); }
.hero__issue { border-radius: var(--r-m); }

/* language switcher */
.topbar { position: relative; z-index: 70; }
.langsw { position: relative; }
.langsw__b { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 9px 0 8px; border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--r-s); background: rgba(255, 255, 255, .06); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; transition: background .2s, border-color .2s; }
.langsw__b:hover, .langsw.is-open .langsw__b { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .36); }
.langsw__b .i { width: 15px; height: 15px; }
.langsw__b .i--down { width: 13px; height: 13px; opacity: .7; transition: transform .25s var(--ease); }
.langsw.is-open .i--down { transform: rotate(180deg); }
.langsw__m { position: absolute; right: 0; top: calc(100% + 10px); z-index: 5; min-width: 210px; padding: 6px; border-radius: var(--r-m); background: #1b1310; border: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 28px 50px -24px rgba(16, 10, 8, .7); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .22s var(--ease), visibility 0s .22s; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.langsw__m { background: var(--glass-d); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
}
.langsw.is-open .langsw__m { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .22s var(--ease); }
.langsw__m button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: var(--r-s); color: #fff; font-size: 14px; font-weight: 600; text-align: left; letter-spacing: 0; }
.langsw__m button b { width: 24px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: rgba(255, 255, 255, .5); }
.langsw__m button:hover { background: rgba(255, 255, 255, .1); }
.langsw__m button.is-on { background: var(--red); }
.langsw__m button.is-on b { color: rgba(255, 255, 255, .8); }
.langchips { display: flex; flex-wrap: wrap; gap: 6px; }
.langchips button { min-width: 44px; height: 36px; padding: 0 10px; border: 1px solid var(--line-d); border-radius: var(--r-s); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; transition: background .2s, border-color .2s; }
.langchips button:hover { border-color: #fff; }
.langchips button.is-on { background: var(--red); border-color: var(--red); }
.mnav__foot .lang-slot { margin-top: 8px; }

/* signature: the whole, long signature */
.author__sig, .eb-sig { mix-blend-mode: multiply; }
.author__sig { width: 190px; max-width: 100%; height: auto; }
.eb-text img.eb-sig, .eb-img img.eb-sig { display: block; width: 210px; height: auto; margin: 8px 0 -6px; border-radius: 0; }
.about__who figcaption { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: end; column-gap: 16px; }
.about__who figcaption .author__sig { grid-column: 2; grid-row: 1 / span 2; width: 132px; margin: 2px 0 -6px; }
.about__who figcaption strong, .about__who figcaption span { grid-column: 1; }
.about__who figcaption { margin-top: 14px; }

/* v4.1 mobile polish */
.mnav__top { z-index: 6; }
@media (max-width: 600px) {
	.about__stats b { font-size: 11.5px; letter-spacing: 0; text-transform: none; }
	.about__stats strong { font-size: 22px; }
	.langchips { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 5px; }
	.langchips button { min-width: 0; height: 34px; padding: 0; }
	.partners .logos li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.index__list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; overflow-wrap: anywhere; }
}

/* forms inside page text (e.g. Contact Form 7) */
.prose input[type="text"], .prose input[type="email"], .prose input[type="tel"], .prose input[type="url"], .prose input[type="number"], .prose input[type="password"], .prose select, .prose textarea { display: block; width: 100%; max-width: 100%; height: 50px; margin-top: 6px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-s); background: #fff; font-size: 16px; transition: border-color .2s; }
.prose textarea { height: auto; min-height: 150px; padding: 12px 14px; }
.prose input:focus, .prose select:focus, .prose textarea:focus { outline: 0; border-color: var(--ink); }
.prose label { display: block; font-size: 14px; font-weight: 700; }
.prose input[type="submit"], .prose button[type="submit"] { display: inline-flex; align-items: center; height: 52px; padding: 0 28px; border: 0; border-radius: var(--r-s); background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .25s; }
.prose input[type="submit"]:hover, .prose button[type="submit"]:hover { background: var(--red); }
.prose .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; color: var(--red); }
.prose .wpcf7-response-output { margin: 18px 0 0 !important; padding: 12px 16px !important; border-radius: var(--r-s); font-size: 14px; }

/* v4.2 all specialties on the home page */
.specs .sh { align-items: flex-end; }
.specs__sum { display: flex; gap: 22px; margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.specs__sum span { display: grid; }
.specs__sum b { font-size: clamp(28px, 2.6vw, 38px); font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.specs__sum span + span { padding-left: 22px; border-left: 1px solid var(--line-2); }
.specs__top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.spec-tile { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-l); background: var(--ink); color: #fff; isolation: isolate; }
.spec-tile__img { position: absolute; inset: 0; }
.spec-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.spec-tile:hover .spec-tile__img img { transform: scale(1.05); }
.spec-tile::after { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(180deg, rgba(16, 10, 8, 0) 32%, rgba(16, 10, 8, .55) 65%, rgba(16, 10, 8, .85) 100%); pointer-events: none; }
.spec-tile__b { position: absolute; left: 24px; right: 78px; bottom: 22px; z-index: 4; display: grid; gap: 6px; }
.spec-tile__n { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.spec-tile strong { font-size: clamp(22px, 2.1vw, 30px); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
.spec-tile__go { position: absolute; right: 20px; bottom: 20px; z-index: 4; display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-s); background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4); transition: background .25s, border-color .25s; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.spec-tile__go { -webkit-backdrop-filter: blur(12px) saturate(170%); backdrop-filter: blur(12px) saturate(170%); }
}
.spec-tile__go .i { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.spec-tile:hover .spec-tile__go { background: var(--red); border-color: var(--red); }
.spec-tile:hover .spec-tile__go .i { transform: translateX(3px); }
.specs__all { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: clamp(28px, 3vw, 40px); }
.specs__all a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 12px 10px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); font-size: 15px; font-weight: 700; line-height: 1.25; transition: background .2s, color .2s, border-color .2s, transform .3s var(--ease), box-shadow .3s; }
.specs__all em { flex: none; display: grid; place-items: center; min-width: 34px; height: 28px; padding: 0 8px; border-radius: var(--r-s); background: var(--fog); font-style: normal; font-size: 12px; font-weight: 800; color: var(--muted); transition: background .2s, color .2s; }
.specs__all a:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 28px -20px rgba(16, 10, 8, .55); }
.specs__all a:hover em { background: var(--red); color: #fff; }
@media (max-width: 980px) {
	.specs__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.specs__all { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.specs .sh { flex-direction: column; align-items: flex-start; }
	.specs__top { gap: 10px; }
	.spec-tile { aspect-ratio: 1; border-radius: var(--r-m); }
	.spec-tile__b { left: 14px; right: 14px; bottom: 14px; gap: 4px; }
	.spec-tile strong { font-size: 18px; }
	.spec-tile__n { font-size: 10px; letter-spacing: .1em; }
	.spec-tile__go { display: none; }
	.specs__all { display: flex; flex-wrap: wrap; gap: 8px; }
	.specs__all li { flex: 0 1 auto; max-width: 100%; }
	.specs__all a { min-height: 42px; gap: 10px; padding: 6px 6px 6px 14px; font-size: 14px; }
	.specs__all em { min-width: 28px; height: 28px; padding: 0 6px; font-size: 11.5px; }
	.about__stats li { padding-right: 6px; }
	.about__stats li + li { padding-left: 8px; }
	.about__stats { grid-template-columns: auto auto auto; justify-content: space-between; }
	.about__stats b { font-size: 10.5px; }
	.about__stats span { font-size: 11.5px; }
}

/* ==========================================================================
   v4.3 – home hero: the photo fills the whole hero; towards the text it turns
   into frosted, grainy paper so the words stay easy to read.
   ========================================================================== */
.hero--photo { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(560px, 78vh, 780px); padding: clamp(56px, 6vw, 104px) 0; background: var(--paper-warm); overflow: hidden; }
.hero--photo .hero__grid { position: relative; z-index: 3; width: 100%; align-items: end; }
.hero__bg { position: absolute; inset: 0 0 0 22%; z-index: 0; margin: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: contrast(1.07) saturate(1.04); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%); mask-image: linear-gradient(90deg, transparent 0, #000 24%); }
.hero__veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__veil::before, .hero__veil::after { content: ""; position: absolute; inset: 0; }
.hero__veil::before { background: linear-gradient(90deg, rgba(246, 238, 228, .96) 0%, rgba(246, 238, 228, .9) 30%, rgba(246, 238, 228, .58) 42%, rgba(246, 238, 228, .14) 53%, rgba(246, 238, 228, 0) 60%); -webkit-mask-image: linear-gradient(90deg, #000 36%, rgba(0, 0, 0, .5) 47%, transparent 58%); mask-image: linear-gradient(90deg, #000 36%, rgba(0, 0, 0, .5) 47%, transparent 58%); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.hero__veil::before { -webkit-backdrop-filter: blur(18px) saturate(115%); backdrop-filter: blur(18px) saturate(115%); }
}
.hero__veil::after { background-image: var(--noise-l); background-size: 220px 220px; opacity: .2; mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(ellipse 17% 33% at 68% 33%, transparent 0, transparent 58%, #000 100%); mask-image: radial-gradient(ellipse 17% 33% at 68% 33%, transparent 0, transparent 58%, #000 100%); }
.hero--photo .hero__media { display: flex; justify-content: flex-end; align-items: flex-end; align-self: stretch; padding: 0; }
.hero--photo .hero__media::before { display: none; }
.hero--photo .hero__issue { position: relative; left: auto; bottom: auto; width: min(420px, 100%); }
.hero--photo .hero__lede { color: #2f2d2a; }
.hero--photo .hero__stats { border-top-color: rgba(18, 12, 10, .18); }
.hero--photo .hero__stats li { border-right-color: rgba(18, 12, 10, .14); }
@media (max-width: 980px) {
	.hero--photo { display: block; min-height: 0; padding: 0 0 40px; }
	.hero__bg, .hero__veil { bottom: auto; left: 0; height: min(104vw, 620px); }
	.hero__bg img { object-position: 50% 20%; -webkit-mask-image: none; mask-image: none; }
	.hero__veil::before { background: linear-gradient(180deg, rgba(246, 238, 228, 0) 0%, rgba(246, 238, 228, 0) 34%, rgba(246, 238, 228, .74) 62%, var(--paper-warm) 86%, var(--paper-warm) 100%); -webkit-mask-image: linear-gradient(180deg, transparent 26%, #000 60%); mask-image: linear-gradient(180deg, transparent 26%, #000 60%); }
	.hero__veil::after { -webkit-mask-image: radial-gradient(ellipse 30% 22% at 64% 31%, transparent 0, transparent 58%, #000 100%), linear-gradient(180deg, #000 76%, transparent 98%); mask-image: radial-gradient(ellipse 30% 22% at 64% 31%, transparent 0, transparent 58%, #000 100%), linear-gradient(180deg, #000 76%, transparent 98%); -webkit-mask-composite: source-in; mask-composite: intersect; }
	.hero--photo .hero__grid { padding-top: min(70vw, 420px); }
	.hero--photo .hero__media { justify-content: flex-start; margin-top: 28px; }
}

/* specialties bar: a black, grainy ticker band with soft glass chips and pink counts */
.cats { position: relative; isolation: isolate; background: linear-gradient(180deg, #1b1310 0%, var(--ink) 100%); border-bottom: 0; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.cats::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--noise-d); background-size: 240px 240px; opacity: .09; pointer-events: none; }
.cats::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); }
.cats__in { height: 56px; }
.cats__label { display: inline-flex; align-items: center; gap: 8px; color: #fff; border-right-color: rgba(255, 255, 255, .18); }
.cats__label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--red); box-shadow: 0 0 0 4px rgba(207, 63, 92, .22); animation: mt-pulse 2.4s ease-in-out infinite; }
@keyframes mt-pulse { 50% { box-shadow: 0 0 0 7px rgba(207, 63, 92, 0); } }
.cats__track { -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 94%, transparent); }
.cats__list { gap: 6px; padding: 0 2px; }
.cats__list.is-ticker { scroll-behavior: auto; }
.cats__list a { height: 34px; padding: 0 13px; border-radius: var(--r-s); border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff; font-weight: 700; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); transition: background .2s, color .2s, border-color .2s; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.cats__list a { -webkit-backdrop-filter: blur(8px) saturate(160%); backdrop-filter: blur(8px) saturate(160%); }
}
.cats__list a sup { font-size: 10.5px; font-weight: 800; color: var(--red-2); }
.cats__list a:hover { background: #fff; border-color: #fff; color: var(--ink); }
.cats__list a:hover sup { color: var(--red); }
.cats__list a.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.cats__list a.is-on sup { color: #fff; }
.cats .rail-btn { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #fff; }
.cats .rail-btn:hover { background: #fff; border-color: #fff; color: var(--ink); }
.cats .rail-btn:disabled { opacity: .35; }
@media (max-width: 980px) {
	.cats__in { height: 52px; }
	.cats__label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.cats__label::before { animation: none; }
}

/* partner logos: whole marks, in colour, optically balanced */
.logos img { width: min(100%, calc(sqrt(var(--ar, 3) * 12500) * 1px)); height: auto; max-height: 76px; object-fit: contain; filter: none; opacity: 1; transition: transform .3s var(--ease); }
.logos li:hover img { transform: scale(1.04); }
.partners .logos img { width: min(100%, calc(sqrt(var(--ar, 3) * 6400) * 1px)); max-height: 54px; }
@media (max-width: 600px) {
	.logos img { width: min(100%, calc(sqrt(var(--ar, 3) * 7000) * 1px)); max-height: 60px; }
	.partners .logos img { width: min(100%, calc(sqrt(var(--ar, 3) * 5200) * 1px)); }
	.logos li:last-child:nth-child(odd) { grid-column: 1 / -1; border-left: 0 !important; }
}

/* footer contacts are the target of every "Контакти" link */
#kontakti { scroll-margin-top: calc(var(--adm) + 110px); }

/* ==========================================================================
   v5 – MedTalks Video: the medtalks.bg portal inside MedTalks News
   (video hub, partners, doctors). Photos with faces stay clean – no print
   texture on video thumbnails or portraits.
   ========================================================================== */
.vgrid { gap: 40px var(--gap); }

/* video card */
.vc { position: relative; min-width: 0; }
.vc__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-m); background: var(--ink); isolation: isolate; }
.vc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.vc__media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(18, 12, 10, 0) 52%, rgba(18, 12, 10, .5) 100%); pointer-events: none; }
.vc__play { position: absolute; z-index: 2; left: 14px; bottom: 14px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .55); color: #fff; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); transition: background .25s, border-color .25s, transform .35s var(--ease); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.vc__play, .vplayer__btn { -webkit-backdrop-filter: blur(12px) saturate(170%); backdrop-filter: blur(12px) saturate(170%); }
}
.vc__play .i { width: 17px; height: 17px; margin-left: 3px; }
.vc__media:hover img { transform: scale(1.045); }
.vc__media:hover .vc__play, .vc__media:focus-visible .vc__play { background: var(--red); border-color: var(--red); transform: scale(1.08); }
.vc__body { padding-top: 14px; }
.vc__by { display: inline-block; margin-bottom: 8px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; line-height: 1.35; color: var(--red); }
.vc__by:hover { color: var(--ink); }
.vc__t { font-size: 17px; font-weight: 700; line-height: 1.32; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vc__t a { background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease); }
.vc__t a:hover { background-size: 100% 2px; }
.vc__d { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.vc--big .vc__media { border-radius: var(--r-l); }
.vc--big .vc__play { left: 50%; top: 50%; bottom: auto; width: 88px; height: 88px; transform: translate(-50%, -50%); }
.vc--big .vc__media:hover .vc__play { transform: translate(-50%, -50%) scale(1.07); }
.vc--big .vc__play .i { width: 30px; height: 30px; margin-left: 5px; }
.vc--big .vc__body { padding-top: 20px; }
.vc--big .vc__t { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.vc--row { display: grid; grid-template-columns: 156px minmax(0, 1fr); gap: 16px; align-items: start; }
.vc--row .vc__media { border-radius: var(--r-s); }
.vc--row .vc__play { left: 8px; bottom: 8px; width: 30px; height: 30px; }
.vc--row .vc__play .i { width: 11px; height: 11px; margin-left: 2px; }
.vc--row .vc__body { padding-top: 0; }
.vc--row .vc__by { margin-bottom: 6px; font-size: 10.5px; }
.vc--row .vc__t { font-size: 15px; line-height: 1.35; }

/* newest videos block (home + portal) */
.vhome__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 3.6vw, 56px); align-items: start; }
.vhome__list { display: grid; gap: 18px; }
.vhome__list li + li { padding-top: 18px; border-top: 1px solid var(--line-2); }
.vhome__partners { margin-top: clamp(44px, 5vw, 72px); padding-top: 18px; border-top: 1px solid var(--line-2); }
.vhome__ph { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.vhome__pact { display: flex; align-items: center; gap: 20px; }
.prail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, calc((100% - 3 * 16px) / 4)); gap: 16px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 4px; }
.sh .rail-nav { align-self: flex-end; }

/* partner tile */
.ptiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ptile { position: relative; min-width: 0; display: grid; grid-template-rows: 118px 1fr; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; transition: border-color .25s, box-shadow .35s, transform .35s var(--ease); }
.ptile__a { display: grid; }
.ptile__logo { position: relative; display: grid; place-items: center; padding: 20px 26px; border-bottom: 1px solid var(--line); }
a.ptile__logo img { transition: transform .3s var(--ease); }
a.ptile__logo:hover img, a.ptile__logo:focus-visible img { transform: scale(1.05); }
.ptile__logo img { width: auto; height: auto; max-width: 100%; max-height: 66px; object-fit: contain; }
.ptile__logo b { font-size: 16px; font-weight: 800; line-height: 1.2; text-align: center; color: var(--ink); }
.ptile__b { display: grid; align-content: start; gap: 6px; padding: 16px 56px 18px 18px; }
.ptile__k { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; line-height: 1.4; color: var(--red); }
.ptile__t { font-size: 15.5px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.ptile__n { display: inline-flex; align-items: center; gap: 7px; margin-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ptile__n .i { width: 12px; height: 12px; color: var(--red); }
.ptile__go { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: var(--r-s); color: var(--ink); transition: background .25s, border-color .25s, color .25s; }
.ptile__go .i { width: 14px; height: 14px; }
.ptile:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(16, 10, 8, .5); }
.ptile__a:hover .ptile__go { background: var(--red); border-color: var(--red); color: #fff; }

/* doctor card */
.dcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gap); }
.dcard { min-width: 0; }
.dcard__a { display: block; }
.dcard__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-l); background: var(--fog-2); }
.dcard__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform .8s var(--ease); }
.dcard__a:hover .dcard__img img { transform: scale(1.035); }
.dcard__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--line-2); }
.dcard__ph .i { width: 56px; height: 56px; }
.dcard__b { display: grid; gap: 4px; padding-top: 14px; }
.dcard__b strong { font-size: 17px; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; transition: color .2s; }
.dcard__b em { font-style: normal; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--muted); }
.dcard__b small { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.dcard__a:hover strong { color: var(--red); }

/* direction / topic chips on dark */
.vchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.vchips--sm { margin-top: 14px; align-items: center; }
.vchips__l { margin-right: 4px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d); }
.vchip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-s); border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); transition: background .2s, color .2s, border-color .2s; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.vchip { -webkit-backdrop-filter: blur(8px) saturate(160%); backdrop-filter: blur(8px) saturate(160%); }
}
.vchips--sm .vchip { height: 32px; padding: 0 12px; font-size: 12.5px; }
.vchip sup { top: 0; font-size: 10.5px; font-weight: 800; color: var(--red-2); }
.vchip:hover { background: #fff; border-color: #fff; color: var(--ink); }
.vchip:hover sup { color: var(--red); }
.vchip.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.vchip.is-on sup { color: #fff; }

/* click-to-play player */
.vplayer { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-l); background: #0b0706; cursor: pointer; box-shadow: 0 44px 70px -44px rgba(0, 0, 0, .8); }
.vplayer img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.vplayer:hover img { transform: scale(1.02); }
.vplayer iframe { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; }
.vplayer__btn { position: absolute; z-index: 2; left: 50%; top: 50%; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .55); color: #fff; transform: translate(-50%, -50%); box-shadow: 0 16px 36px -16px rgba(0, 0, 0, .7); transition: background .25s, border-color .25s, transform .35s var(--ease); }
.vplayer__btn .i { width: 30px; height: 30px; margin-left: 5px; }
.vplayer:hover .vplayer__btn, .vplayer:focus-visible .vplayer__btn { background: var(--red); border-color: var(--red); transform: translate(-50%, -50%) scale(1.07); }
.vplayer.is-on { cursor: default; }
.vplayer.is-on .vplayer__btn { display: none; }

/* single video */
.vs { padding: clamp(28px, 3.4vw, 48px) 0 clamp(52px, 6vw, 92px); }
.vs .crumbs, .pth .crumbs, .dh .crumbs { color: var(--muted-d); }
.vs .crumbs a:hover, .pth .crumbs a:hover, .dh .crumbs a:hover { color: #fff; }
.vs__grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: clamp(28px, 3.4vw, 52px); align-items: start; }
.vs__t { margin: 16px 0 14px; font-size: clamp(24px, 2.3vw, 34px); font-weight: 800; letter-spacing: -.025em; line-height: 1.14; }
.vs__date { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted-d); }
.vs__date .i { width: 15px; height: 15px; color: var(--red-2); }
.vs__by { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 22px; padding: 12px; border-radius: var(--r-m); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff; transition: border-color .25s, background .25s; }
.vs__by + .vs__by { margin-top: 10px; }
.vs__by:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .34); }
.vs__logo { display: grid; place-items: center; width: 64px; height: 64px; padding: 8px; border-radius: var(--r-s); background: #fff; color: var(--ink); overflow: hidden; }
.vs__logo img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.vs__logo .i { width: 24px; height: 24px; }
.vs__logo--doc { padding: 0; }
.vs__logo--doc img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: 50% 18%; }
.vs__by small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red-2); }
.vs__by strong { display: block; margin-top: 3px; font-size: 15px; font-weight: 800; line-height: 1.25; }
.vs__by em { display: block; margin-top: 3px; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--muted-d); }
.vs__act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.vs__act .btn .i { width: 16px; height: 16px; }
.vs__desc { max-width: 880px; margin-top: clamp(32px, 4vw, 52px); padding-top: 28px; border-top: 1px solid var(--line-d); color: rgba(248, 240, 230, .86); font-size: 17px; }
.vs__desc strong, .vs__desc h2, .vs__desc h3 { color: #fff; }
.vs__desc a { color: var(--red-2); }

/* partner page head */
.pth { padding: clamp(28px, 3.4vw, 48px) 0 clamp(52px, 6vw, 92px); }
.pth__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 4.4vw, 72px); align-items: center; }
.pth__grid--solo { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.pth__logo { display: inline-grid; place-items: center; min-width: 170px; max-width: 300px; height: 96px; margin-bottom: 26px; padding: 14px 24px; border-radius: var(--r-m); background: #fff; box-shadow: 0 18px 34px -22px rgba(0, 0, 0, .7); }
.pth__logo img { width: auto; height: auto; max-width: 100%; max-height: 66px; object-fit: contain; }
.pth__t { margin-top: 16px; font-size: clamp(32px, 4.2vw, 58px); font-weight: 900; letter-spacing: -.035em; line-height: 1.02; }
.pth__x { margin-top: 14px; font-size: 18px; font-weight: 500; line-height: 1.5; color: var(--muted-d); }
.pth__stats { display: flex; gap: 32px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-d); }
.pth__stats strong { display: block; font-size: clamp(30px, 3vw, 40px); font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--red-2); }
.pth__stats span { display: block; margin-top: 6px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d); }
.pth__act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pth__act .btn .i { width: 16px; height: 16px; }
.pth__video { margin: 0; }
.pth__video figcaption { margin-top: 14px; font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--muted-d); }
.pth__video figcaption a:hover { color: #fff; }
.sh__n { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.sh__n strong { font-size: 18px; color: var(--red); letter-spacing: -.02em; }

/* partner: about + contacts */
.pabout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 4.4vw, 72px); align-items: start; }
.pabout--solo { grid-template-columns: minmax(0, 520px); }
.pabout .prose { font-size: 17px; }
.pcontact, .procs { position: sticky; top: calc(var(--adm) + 110px); padding: 26px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); }
.pcontact__logo { display: grid; place-items: center; height: 84px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.pcontact__logo img { width: auto; height: auto; max-width: 80%; max-height: 64px; object-fit: contain; }
.pcontact__h { margin-bottom: 14px; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.pcontact ul { display: grid; }
.pcontact li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.pcontact li:first-child { border-top: 0; padding-top: 0; }
.pcontact__i, .dh__i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-s); background: var(--fog); color: var(--red); }
.pcontact__i .i, .dh__i .i { width: 17px; height: 17px; }
.pcontact small, .dh__rows small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.pcontact a { display: block; margin-top: 2px; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.pcontact a:hover { color: var(--red); }

/* doctor page */
.dh { padding: clamp(28px, 3.4vw, 48px) 0 clamp(52px, 6vw, 92px); }
.dh__grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(32px, 4.4vw, 72px); align-items: center; }
.dh__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-l); background: rgba(255, 255, 255, .06); box-shadow: 0 44px 70px -44px rgba(0, 0, 0, .8); }
.dh__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.dh__t { margin-top: 16px; font-size: clamp(32px, 4vw, 56px); font-weight: 900; letter-spacing: -.035em; line-height: 1.02; }
.dh__info .vs__by { max-width: 460px; }
.dh__rows { display: grid; margin-top: 24px; }
.dh__rows li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-d); font-size: 15px; font-weight: 600; color: rgba(248, 240, 230, .9); }
.dh__rows small { color: var(--muted-d); }
.dh__rows a:hover { color: #fff; text-decoration: underline; }
.dh__i { background: rgba(255, 255, 255, .08); color: var(--red-2); }
.dbio { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 4.4vw, 72px); align-items: start; }
.dbio--solo { grid-template-columns: minmax(0, 880px); }
.dbio .prose { font-size: 17px; }
.procs { background: var(--fog); border-color: var(--line); }
.proc + .proc { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.proc strong { display: block; font-size: 15.5px; font-weight: 800; }
.proc ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.proc li { padding: 5px 10px; border-radius: var(--r-xs); background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }

/* "Още от MedTalks" */
.vlinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.vlink { position: relative; display: grid; align-content: start; gap: 8px; height: 100%; min-height: 172px; padding: 22px 22px 56px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); transition: border-color .25s, transform .35s var(--ease), box-shadow .35s; }
.vlink__i { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 6px; border-radius: var(--r-s); background: var(--fog); color: var(--red); }
.vlink__i .i { width: 19px; height: 19px; }
.vlink strong { font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.vlink__x { font-size: 13.5px; font-weight: 500; line-height: 1.5; color: var(--muted); }
.vlink__go { position: absolute; left: 22px; bottom: 20px; color: var(--red); }
.vlink__go .i { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.vlink:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(16, 10, 8, .5); }
.vlink:hover .vlink__go .i { transform: translateX(4px); }

/* pop-up player */
.vmodal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: clamp(14px, 3vw, 44px); }
.vmodal[hidden] { display: none; }
.vmodal__bg { position: absolute; inset: 0; background: rgba(12, 8, 6, .88); animation: mt-fade .25s; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.vmodal__bg { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
.vmodal__box { position: relative; width: min(1180px, 100%); animation: mt-rot .35s var(--ease); }
.vmodal__bar { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; color: #fff; }
.vmodal__t { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vmodal__go { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red-2); }
.vmodal__go:hover { color: #fff; }
.vmodal__x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-s); border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; font-size: 26px; line-height: 1; transition: background .2s, color .2s; }
.vmodal__x:hover { background: #fff; color: var(--ink); }
.vmodal__f { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-m); background: #000; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9); }
.vmodal__f iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 1180px) {
	.ptiles, .dcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.prail { grid-auto-columns: minmax(240px, calc((100% - 2 * 16px) / 3)); }
}
@media (max-width: 980px) {
	.vhome__grid, .vs__grid, .pth__grid, .dh__grid, .pabout, .dbio { grid-template-columns: minmax(0, 1fr); }
	.ptiles, .dcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.prail { grid-auto-columns: minmax(230px, 44%); }
	.pcontact, .procs { position: static; }
	.dh__photo { max-width: 380px; }
	.vmodal__go { display: none; }
}
@media (max-width: 600px) {
	.vchips { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); scrollbar-width: none; }
	.vchips::-webkit-scrollbar { display: none; }
	.vchip { flex: none; }
	.vs__grid .vchips { flex-wrap: wrap; margin-right: 0; padding-right: 0; }
	.vc--row { grid-template-columns: 124px minmax(0, 1fr); gap: 12px; }
	.vc--row .vc__t { font-size: 14.5px; }
	.vc--big .vc__play { width: 66px; height: 66px; }
	.vc--big .vc__play .i { width: 24px; height: 24px; }
	.vplayer__btn { width: 70px; height: 70px; }
	.vplayer__btn .i { width: 24px; height: 24px; }
	.ptiles { gap: 10px; }
	.ptile { grid-template-rows: 84px 1fr; border-radius: var(--r-m); }
	.ptile__logo { padding: 14px 14px; }
	.ptile__logo img { max-height: 46px; }
	.ptile__logo b { font-size: 13.5px; }
	.ptile__b { padding: 12px 12px 46px; }
	.ptile__t { font-size: 14px; }
	.ptile__k { font-size: 9.5px; letter-spacing: .1em; }
	.ptile__go { right: 12px; bottom: 12px; width: 28px; height: 28px; }
	.dcards { gap: 24px 12px; }
	.dcard__b strong { font-size: 15px; }
	.dcard__b em { font-size: 12.5px; }
	.prail { grid-auto-columns: 72%; }
	.vhome__pact .more { display: none; }
	.pth__logo { height: 78px; min-width: 140px; }
	.pth__act .btn, .vs__act .btn { flex: 1 1 auto; }
	.pcontact, .procs { padding: 20px; }
	.vlinks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.vlink { min-height: 150px; padding: 16px 16px 48px; }
	.vlink strong { font-size: 15px; }
	.vlink__x { font-size: 12.5px; }
	.vlink__go { left: 16px; bottom: 16px; }
}
.valso { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.valso__h { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.valso__l { display: flex; flex-wrap: wrap; gap: 12px; }
.valso__l li { display: grid; place-items: center; width: 170px; height: 76px; padding: 12px 18px; border-radius: var(--r-m); background: #fff; border: 1px solid var(--line); }
.valso__l img { width: auto; height: auto; max-width: 100%; max-height: 50px; object-fit: contain; }

/* v5.1 – play controls sit in the corner, never over a face; logo on its own line; pop-up fits the screen */
.pth__logo { display: grid; width: fit-content; }
.vc--big .vc__play { left: 20px; top: auto; bottom: 20px; width: 64px; height: 64px; transform: none; }
.vc--big .vc__media:hover .vc__play { transform: scale(1.07); }
.vc--big .vc__play .i { width: 22px; height: 22px; margin-left: 4px; }
.vplayer__btn { left: 22px; top: auto; bottom: 22px; width: auto; height: 54px; gap: 10px; grid-auto-flow: column; padding: 0 22px 0 18px; border-radius: var(--r-m); transform: none; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.vplayer__btn::after { content: "Пусни видеото"; }
.vplayer__btn .i { width: 18px; height: 18px; margin-left: 0; }
.vplayer:hover .vplayer__btn, .vplayer:focus-visible .vplayer__btn { transform: translateY(-2px); }
.vmodal__box { width: min(1180px, 100%, calc((100vh - 130px) * 1.7778)); }
@media (max-width: 600px) {
	.vc--big .vc__play { left: 12px; bottom: 12px; width: 50px; height: 50px; }
	.vc--big .vc__play .i { width: 18px; height: 18px; }
	.vplayer__btn { left: 12px; bottom: 12px; height: 44px; padding: 0 16px 0 14px; font-size: 11px; }
	.vplayer__btn .i { width: 15px; height: 15px; }
}

/* v5.2 – a partner's logo opens the partner's own website */
.vs__by:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.vs__logo { position: relative; transition: transform .25s var(--ease), box-shadow .25s; }
a.vs__logo:hover, a.vs__logo:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--red-2); }
.vs__byt { min-width: 0; }
.vs__byn { display: inline-block; }
.vs__byn:hover strong { color: var(--red-2); }
.vs__by em { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.vs__by em a:hover { color: #fff; text-decoration: underline; }
.vs__web { display: inline-flex; align-items: center; gap: 5px; color: var(--red-2); }
.vs__web .i { width: 12px; height: 12px; }
.pth__logo, .pcontact__logo { position: relative; }
a.pth__logo { transition: transform .25s var(--ease), box-shadow .25s; }
a.pth__logo:hover, a.pth__logo:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--red-2), 0 18px 34px -22px rgba(0, 0, 0, .7); }
a.pcontact__logo img { transition: transform .3s var(--ease); }
a.pcontact__logo:hover img { transform: scale(1.04); }
.lg-ext { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: var(--r-xs); background: var(--red); color: #fff; opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s; }
.lg-ext .i { width: 12px; height: 12px; }
.vs__logo .lg-ext { top: 3px; right: 3px; width: 18px; height: 18px; }
.vs__logo .lg-ext .i { width: 10px; height: 10px; }
.is-web:hover .lg-ext, .is-web:focus-visible .lg-ext { opacity: 1; transform: none; }
@media (hover: none) {
	.is-web .lg-ext { opacity: 1; transform: none; }
}

/* v5.3 — every logo opens the company's website */
.logos a { display: grid; place-items: center; width: 100%; }
.valso__l li { position: relative; padding: 0; }
.valso__a { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 12px 18px; }
.valso__a img { transition: transform .3s var(--ease); }
.valso__a:hover img { transform: scale(1.05); }
.ptile__logo .lg-ext, .valso__a .lg-ext { top: 8px; right: 8px; }
