/* ===== Страница события /events/{id} — v2 (02.10). Общие стили: главная + календарь + «Сегодня» ===== */
/* первый экран: оглавление текстов в стеклянной карточке */
.etoc{display:flex;flex-direction:column;margin-top:8px}
.etoc a{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid rgba(255,255,255,.12);color:#fff;font-size:16px;font-weight:600}
.etoc a:first-child{border-top:0}
.etoc a:hover span{text-decoration:underline;text-underline-offset:3px}
.etoc svg,.eside svg,.esh svg{fill:none;stroke:#d6b070;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none}
.etoc svg{width:18px;height:18px}
.etoc-empty{font-size:15px;color:rgba(255,255,255,.7)}

/* ===== 2. ЗАЛ ИКОНЫ: всё по центру; фон — размытая эта же икона поверх тёмного ===== */
.ehall2{position:relative;overflow:hidden;padding:96px 0 64px;background:linear-gradient(180deg,var(--navy) 0%,#12233d 30%,#183454 62%,#24476c 86%,#2d5480 100%)}
.ehbg{position:absolute;inset:0;pointer-events:none}
.ehbg img{position:absolute;left:50%;top:46%;width:120%;height:120%;object-fit:cover;transform:translate(-50%,-50%);filter:blur(70px) saturate(1.2);opacity:.28}
.ehbg:after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 60% 55% at 50% 45%,rgba(13,22,34,0) 0%,rgba(13,22,34,.55) 100%),linear-gradient(180deg,var(--navy) 0%,rgba(13,22,34,0) 22%,rgba(13,22,34,0) 70%,#2d5480 100%)}
.ehin{position:relative;z-index:1}
.ehall2 .hsep{margin-bottom:40px}
.estage{--eh:clamp(360px,calc(100vh - 330px),620px);position:relative;width:calc(var(--eh)*.8);height:var(--eh);max-width:100%;margin:0 auto;overflow:hidden;border-radius:10px;background:#0d1a2e;box-shadow:0 60px 120px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.1)}
.estage .hbg{position:absolute;inset:-30px;width:calc(100% + 60px);height:calc(100% + 60px);object-fit:cover;filter:blur(26px) brightness(.55)}
.estage .hmain{position:absolute;top:0;left:50%;height:100%;width:auto;max-width:none;transform:translateX(-50%)}
.estage .hmain.none{height:30%;top:35%}
.ehall2.noimg .estage .hbg{display:none}
.ethumbrow{display:flex;justify-content:center;align-items:center;gap:22px;flex-wrap:wrap;margin-top:28px}
.ethumbs{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.ethumbs button{padding:0;border:0;background:none;cursor:pointer;opacity:.6;transition:opacity .2s}
.ethumbs button:hover,.ethumbs button.on{opacity:1}
.ethumbs .hmf{width:56px;height:70px;border-radius:6px}
.ethumbs button.on .hmf{border-color:#d6b070}
.ethumbs .hmf .hmi{transform:translateX(-50%)}
.hpager[hidden]{display:none}

/* ===== 3. ЧТЕНИЕ: слева прилипшее оглавление, справа белый лист ===== */
.eread{padding-top:56px}
.erd{display:grid;grid-template-columns:240px minmax(0,1fr);gap:36px;align-items:start}
.eside{position:sticky;top:24px;display:flex;flex-direction:column;gap:2px;padding:16px 12px;border-radius:24px;background:rgba(255,255,255,.7);border:1px solid rgba(255,255,255,.9);box-shadow:inset 0 1px 0 #fff,0 18px 44px rgba(27,42,61,.08);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.eside[hidden]{display:none}
.eside-h{padding:4px 12px 10px;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8f6c30}
.eside a{position:relative;display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:14px;font-size:16px;font-weight:600;color:#1b2a3d;transition:background .2s}
.eside a:hover{background:rgba(255,255,255,.8)}
.eside a.on{background:linear-gradient(90deg,rgba(246,238,223,.95),rgba(255,255,255,.7))}
.eside a.on:before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:3px;background:#d6a23c}
.eside svg{width:20px;height:20px}
.epaper{padding:44px 56px 48px;border-radius:30px;background:#fff;box-shadow:0 24px 60px rgba(27,42,61,.1)}
.esec{scroll-margin-top:24px}
.esec+.esec{margin-top:52px;padding-top:44px;border-top:1px solid rgba(27,42,61,.08)}
.esh{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:24px}
.esh svg{width:28px;height:28px}
.esh h2{font-size:clamp(28px,2.4vw,36px);font-weight:300;letter-spacing:-.02em;color:#1b2a3d;margin:0}
/* житие */
.eprose{position:relative;max-width:740px}
.eprose p{font-size:19px;line-height:1.75;color:#1f3048;margin:0 0 18px}
.eprose p.eplead{font-size:23px;line-height:1.6;color:#1b2a3d}
.eprose.clamp{max-height:640px;overflow:hidden}
.eprose.clamp:after{content:"";position:absolute;left:0;right:0;bottom:0;height:180px;background:linear-gradient(180deg,rgba(255,255,255,0),#fff)}
.emore{margin-top:8px;padding:12px 22px;border-radius:999px;border:1px solid rgba(214,162,60,.55);background:#fff;font:inherit;font-size:16px;font-weight:600;color:#1b2a3d;cursor:pointer;transition:background .2s}
.emore:hover{background:#fbf5ea}
/* переключатель языка */
.eseg{display:inline-flex;margin-left:auto;padding:4px;border-radius:999px;background:#f1f5fa;border:1px solid rgba(27,42,61,.08)}
.eseg button{padding:8px 14px;border:0;border-radius:999px;background:none;font:inherit;font-size:14px;font-weight:600;color:#44587a;cursor:pointer}
.eseg button.on{background:#fff;color:#1b2a3d;box-shadow:0 2px 8px rgba(27,42,61,.1)}
/* песнопения и молитва — оригинал | перевод */
.ecard{padding:28px 0}
.ecard+.ecard{border-top:1px solid rgba(27,42,61,.08)}
.esh+.ecard{padding-top:0}
.ech{margin-bottom:14px;font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#8f6c30}
.epar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:44px}
.epar.one{grid-template-columns:minmax(0,740px)}
.ecs p{font-size:20px;line-height:1.7;color:#1b2a3d;margin:0 0 12px}
.etr{padding-left:26px;border-left:2px solid rgba(214,162,60,.45)}
.etr p{font-size:17px;line-height:1.65;color:#44587a;margin:0 0 12px}
.m-cs .etr,.m-ru .ecs{display:none}
.m-cs .epar,.m-ru .epar{grid-template-columns:minmax(0,740px)}
.m-ru .etr{padding-left:0;border-left:0}
.m-ru .etr p{font-size:19px;color:#1f3048}
/* канон, акафист — раскрывающиеся части */
.esub{font-size:20px;color:#44587a;margin:0 0 18px}
.eparts{border-top:1px solid rgba(27,42,61,.08)}
.epart{border-bottom:1px solid rgba(27,42,61,.08)}
.epart summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 4px;cursor:pointer;list-style:none;font-size:19px;font-weight:600;color:#1b2a3d}
.epart summary::-webkit-details-marker{display:none}
.epart summary i{width:30px;height:30px;flex:none;border-radius:50%;border:1px solid rgba(214,162,60,.5);position:relative;transition:transform .25s}
.epart summary i:before{content:"";position:absolute;left:50%;top:45%;width:8px;height:8px;border-right:1.5px solid #8f6c30;border-bottom:1.5px solid #8f6c30;transform:translate(-50%,-50%) rotate(45deg)}
.epart[open] summary i{transform:rotate(180deg)}
.epart[open] summary{color:#8f6c30}
.epart .epar{padding:0 4px 24px}
.eparts+.emore{margin-top:18px}
.eempty{font-size:18px;color:#44587a}

/* ===== 4. Другие события этого дня — панель в стиле «Недели» ===== */
.edaystrip{list-style:none;display:flex;overflow-x:auto;margin:0;padding:0;border-radius:28px;background:rgba(255,255,255,.7);border:1px solid rgba(255,255,255,.9);
 box-shadow:inset 0 1px 0 #fff,0 22px 54px rgba(27,42,61,.09);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);scrollbar-width:thin}
.edaystrip li{position:relative;flex:0 0 160px}
.edaystrip li+li:before{content:"";position:absolute;left:0;top:24px;bottom:24px;width:1px;background:linear-gradient(180deg,rgba(168,130,62,0),rgba(168,130,62,.38) 30%,rgba(168,130,62,.38) 70%,rgba(168,130,62,0))}
.edaystrip a{display:block;height:100%;padding:22px 18px;color:#1b2a3d;transition:background .2s}
.edaystrip a:hover{background:rgba(255,255,255,.6)}
.edaystrip .hmf{width:100px;height:126px;border-radius:8px;box-shadow:0 10px 24px rgba(27,42,61,.18)}
.edaystrip .hmf.noicon{background:#e8eef6 url(/site/img/logo.svg) center/34% no-repeat}
.edc{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;margin-top:12px;font-size:14px;font-weight:500;line-height:1.35}
.edc i{display:block;font-style:normal;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8f6c30;margin-bottom:4px}
.edaystrip li.cur a{background:linear-gradient(180deg,rgba(246,238,223,.95),rgba(255,255,255,.6));box-shadow:inset 0 3px 0 #d6a23c}
.edaystrip li.cur .hmf{border-color:#d6a23c}

@media(max-width:900px){
 .ehall2{padding:64px 0 44px}
 .estage{width:min(78vw,340px);height:auto;aspect-ratio:4/5}
 .erd{grid-template-columns:1fr;gap:16px}
 .eside{position:sticky;top:0;z-index:20;flex-direction:row;overflow-x:auto;gap:4px;padding:8px;margin:0 -20px;border-radius:0;scrollbar-width:none}
 .eside-h{display:none}
 .eside a{flex:none;padding:9px 14px;font-size:15px}
 .eside a.on:before{left:10px;right:10px;top:auto;bottom:2px;width:auto;height:3px}
 .epaper{padding:26px 20px 30px;border-radius:22px}
 .esh h2{font-size:26px}
 .eseg{margin-left:0}
 .eprose p{font-size:17px}.eprose p.eplead{font-size:20px}
 .epar,.m-cs .epar,.m-ru .epar{grid-template-columns:1fr;gap:14px}
 .etr{padding-left:16px}
 .ecs p{font-size:18px}
 .edaystrip{margin:0 -20px;border-radius:0}
 .edaystrip li{flex-basis:130px}
 .edaystrip .hmf{width:84px;height:106px}
}
.erd>*{min-width:0}.esh h2{min-width:0}@media(max-width:900px){.eseg{width:100%}.eseg button{flex:1;padding:8px 6px;font-size:13px}}
.epage .crumbs b{max-width:min(46vw,420px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:900px){.epage .hbtns .b1{flex:1 1 40%;text-align:center}.epage .hbtns #eAll{order:3;flex-basis:100%}.epage .crumbs b{max-width:52vw}}
@media(max-width:900px){.epage .hbtns .b1{padding:14px 10px;white-space:nowrap}}

/* ===== v3 (03.10): икона и тексты ОДНИМ блоком на общем градиенте (как на главной), вкладки горизонтально, без белой подложки ===== */
.eflow{position:relative;z-index:1;padding:96px 0 32px;
 background:linear-gradient(180deg,var(--navy) 0,#12233d 60px,#183454 120px,#1e3e61 170px,#24476c 215px,#2d5480 260px,#3c6694 305px,#5480ab 350px,#7098c0 395px,#8eb1d4 440px,#adc9e4 485px,#c9ddef 530px,#dde9f4 575px,#dde9f4 100%)}
.ehead{max-width:900px}
.ehead .eyebrow{color:#e2c68f}
.ehead h2{margin-top:12px;font-size:clamp(30px,3vw,46px);font-weight:300;letter-spacing:-.02em;line-height:1.1;color:#fff}
/* вкладки: тёмное стекло — читается и на тёмном, и на светлом, прилипают к верху */
.etabs2{position:sticky;top:12px;z-index:30;display:inline-flex;gap:4px;margin-top:26px;padding:6px;border-radius:999px;background:rgba(16,30,52,.62);border:1px solid rgba(255,255,255,.18);
 backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 14px 34px rgba(13,22,34,.25);max-width:100%;overflow-x:auto;scrollbar-width:none}
.etabs2[hidden]{display:none}
.etabs2 button{display:inline-flex;align-items:center;gap:9px;flex:none;padding:11px 18px;border:0;border-radius:999px;background:none;font:inherit;font-size:16px;font-weight:600;color:rgba(255,255,255,.88);cursor:pointer;transition:background .2s,color .2s}
.etabs2 button:hover{background:rgba(255,255,255,.1)}
.etabs2 svg{width:18px;height:18px;fill:none;stroke:#d6b070;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.etabs2 button.on{background:linear-gradient(150deg,#BDE7FF 31%,#BDFFF4 100%);color:#1b2a3d}
.etabs2 button.on svg{stroke:#8f6c30}
/* икона слева (прилипает), текст справа */
.ebody{display:grid;grid-template-columns:minmax(0,400px) minmax(0,1fr);gap:64px;align-items:start;margin-top:40px}
.ebody>*{min-width:0}
.eicon{position:sticky;top:96px}
.eicon .estage{--eh:auto;width:100%;height:auto;aspect-ratio:4/5;max-height:calc(100vh - 230px);margin:0;border-radius:14px;box-shadow:0 40px 90px rgba(13,22,34,.45),0 0 0 1px rgba(255,255,255,.12)}
.eflow.noimg .estage .hbg{display:none}
.eicon .ethumbrow{justify-content:space-between;flex-wrap:nowrap;gap:14px;margin-top:16px}
.eicon .ethumbs{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;padding:2px}
.eicon .hpager{flex:none;background:rgba(255,255,255,.75);border-color:rgba(27,42,61,.12)}
.eicon .hpager button{color:#1b2a3d}.eicon .hpager .hcount{color:#44587a}
.etext{padding-top:4px}
.etext .esec+.esec{margin-top:0;padding-top:0;border-top:0}
.etext .esec[hidden]{display:none}
.etext .eprose p{color:#1f3048}
.etext .eprose p.eplead{color:#1b2a3d}
.etext .eseg{background:rgba(255,255,255,.7)}
.etext .eparts,.etext .epart,.etext .ecard+.ecard{border-color:rgba(27,42,61,.12)}
.eother{padding-top:40px}
@media(max-width:900px){
 .eflow{padding-top:64px}
 .etabs2{display:flex;top:8px;margin:20px -20px 0;border-radius:0;padding:6px 14px}
 .ebody{grid-template-columns:1fr;gap:28px;margin-top:24px}
 .eicon{position:static}
 .eicon .estage{max-height:none;width:min(80vw,360px);margin:0 auto}
}

/* внутри вкладки свой заголовок раздела не нужен — его называет вкладка; остаётся только переключатель языка */
.etext .esh{margin-bottom:18px}.etext .esh svg,.etext .esh h2{display:none}
.etext .esh:empty,.etext .esh:not(:has(.eseg)){display:none}
.etext .eseg{margin-left:0}

/* переключатель «‹ 1 из 7 ›» — поверх иконы в нижнем углу; миниатюры — один ряд на всю ширину иконы */
.eicon .estage .hpager{position:absolute;right:12px;bottom:12px;z-index:2;background:rgba(13,22,34,.6);border-color:rgba(255,255,255,.25);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.eicon .estage .hpager button{color:#fff}.eicon .estage .hpager .hcount{color:rgba(255,255,255,.85)}
.eicon .ethumbs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-top:14px;overflow:visible}
.eicon .ethumbs button{width:100%}
.eicon .ethumbs .hmf{width:100%;height:auto;aspect-ratio:4/5}
.eicon .ethumbs:empty{display:none}
.etext .esh{display:flex;justify-content:flex-start}
.etext .eseg{margin:0}
.esh{padding:0;border:0;grid-template-columns:none;position:static}

/* 03.10: «Другие события» — без жёсткой панели: иконы на общем фоне, края ленты плавно растворяются, тянется мышкой */
.edaystrip{background:none;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;border-radius:0;gap:6px;padding:6px 0 14px;cursor:grab;user-select:none;
 -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 48px,#000 calc(100% - 48px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 48px,#000 calc(100% - 48px),transparent 100%);scrollbar-width:none}
.edaystrip::-webkit-scrollbar{display:none}
.edaystrip li{flex:0 0 150px}
.edaystrip li:first-child{margin-left:40px}.edaystrip li:last-child{margin-right:40px}
.edaystrip li+li:before{display:none}
.edaystrip a{padding:14px 12px 16px;border-radius:20px}
.edaystrip a:hover{background:rgba(255,255,255,.55)}
.edaystrip img{-webkit-user-drag:none;pointer-events:none}
.edaystrip .hmf{width:100%;height:auto;aspect-ratio:4/5;border-radius:10px;box-shadow:0 14px 30px rgba(27,42,61,.16)}
.edaystrip li.cur a{background:rgba(255,255,255,.75);box-shadow:0 14px 34px rgba(27,42,61,.08)}
.edaystrip li.cur .hmf{border:2px solid #d6a23c}
/* ровный фон: светлый до баннера, без ступеньки */
.eflow,.eother{background-color:#dde9f4}
.eother{background:#dde9f4;padding-bottom:24px}
.epage .getwrap{margin-top:0}
@media(max-width:900px){.edaystrip li{flex-basis:120px}.edaystrip li:first-child{margin-left:20px}.edaystrip li:last-child{margin-right:20px}}
.edaystrip li{width:150px;min-width:0;max-width:150px}.edaystrip a{overflow:hidden}.edc{overflow-wrap:anywhere;hyphens:auto}@media(max-width:900px){.edaystrip li{width:120px;max-width:120px}}
.eother{background:none!important}
/* 03.10: без «провала» — от цвета низа первого экрана (#183454) только светлее, шкала цветов как .flow главной, растянута на ~720 px */
.eflow{background:linear-gradient(180deg,#183454 0,#1a3859 70px,#1e3e61 140px,#24476c 205px,#2d5480 265px,#3c6694 325px,#5480ab 385px,#7098c0 445px,#8eb1d4 505px,#adc9e4 565px,#c9ddef 630px,#dde9f4 700px,#dde9f4 100%)}

/* 03.10 (2): «Другие события» — снова светлая стеклянная панель с золотыми разделителями (как «Неделя»);
   внутри неё лента прокручивается, края ленты растворяются, снизу тонкая золотистая полоска прокрутки */
.edaypanel{position:relative;border-radius:28px;background:rgba(255,255,255,.7);border:1px solid rgba(255,255,255,.9);
 box-shadow:inset 0 1px 0 #fff,0 22px 54px rgba(27,42,61,.09);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);overflow:hidden;padding:6px 0 10px}
.edaypanel .edaystrip{gap:0;padding:0 0 10px;margin:0 14px;
 -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 36px,#000 calc(100% - 36px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 36px,#000 calc(100% - 36px),transparent 100%);
 scrollbar-width:thin;scrollbar-color:rgba(214,162,60,.55) transparent}
.edaypanel .edaystrip::-webkit-scrollbar{display:block;height:4px}
.edaypanel .edaystrip::-webkit-scrollbar-thumb{background:rgba(214,162,60,.55);border-radius:4px}
.edaypanel .edaystrip::-webkit-scrollbar-track{background:rgba(27,42,61,.06);border-radius:4px;margin:0 40px}
.edaypanel .edaystrip li{width:160px;max-width:160px;flex:0 0 160px}
.edaypanel .edaystrip li:first-child{margin-left:22px}.edaypanel .edaystrip li:last-child{margin-right:22px}
.edaypanel .edaystrip li+li:before{display:block;content:"";position:absolute;left:0;top:24px;bottom:24px;width:1px;background:linear-gradient(180deg,rgba(168,130,62,0),rgba(168,130,62,.38) 30%,rgba(168,130,62,.38) 70%,rgba(168,130,62,0))}
.edaypanel .edaystrip a{border-radius:0;padding:20px 16px}
.edaypanel .edaystrip a:hover{background:rgba(255,255,255,.55)}
.edaypanel .edaystrip li.cur a{background:linear-gradient(180deg,rgba(246,238,223,.95),rgba(255,255,255,.6));box-shadow:inset 0 3px 0 #d6a23c}
.edaypanel .edaystrip li.cur .hmf{border:2px solid #d6a23c}
@media(max-width:900px){.edaypanel{margin:0 -20px;border-radius:0}.edaypanel .edaystrip li{width:130px;max-width:130px;flex-basis:130px}}
/* ===== 05.10 · ЕДИНОЕ ПРАВИЛО МЕНЮ: главное меню сайта не прилипает; меню разделов страницы прилипает к верху экрана —
   на всех страницах одинаково (событие, пост, «Посты и праздники»): на компьютере top 12px, на телефоне top 8px, капсула с прокруткой вбок ===== */
@media(max-width:900px){
 .etabs2{display:flex;margin:20px 0 0;padding:5px;border-radius:999px;border:1px solid rgba(255,255,255,.18);overflow-x:auto;scrollbar-width:none}
 .etabs2::-webkit-scrollbar{display:none}
 .etabs2 button,.etabs2 a{padding:8px 12px;font-size:14px}
}
