/* Полное раскрытие события. Основной текст — 16 px. */
.detail-sheet { inset:0; height:100dvh; max-height:100dvh; border-radius:0; overflow:hidden; }
#detail-content { height:100%; display:flex; flex-direction:column; }
.event-topbar { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:62px; padding:8px 16px; padding-top:calc(8px + env(safe-area-inset-top)); border-bottom:1px solid var(--line); flex-shrink:0; background:white; }
.event-topbar .icon-button { width:40px; height:40px; }
.event-topbar > span { color:var(--purple); font-size:14.95px; font-weight:650; }
.event-scroll { min-height:0; flex:1; overflow-y:auto; overscroll-behavior:contain; scroll-behavior:auto; }
.event-hero { position:relative; min-height:220px; height:260px; overflow:hidden; background:#eee7f1; }
.event-hero-backdrop { position:absolute; inset:-25px; width:calc(100% + 50px); height:calc(100% + 50px); object-fit:cover; filter:blur(24px) brightness(.55); opacity:.75; }
.event-hero-image { position:relative; display:block; width:100%; height:100%; object-fit:contain; }
.event-hero .poster-tag { top:15px; left:18px; font-size:12px; }
.poster-zoom { position:absolute; bottom:14px; right:17px; display:flex; align-items:center; gap:6px; background:#fffef3ed; color:var(--purple); padding:9px 11px; border:1px solid #fff8; border-radius:8px; font-size:12.65px; font-weight:650; }
.poster-zoom svg { width:16px; height:16px; }
.event-summary { padding:22px 22px 20px; }
.event-kicker { display:flex; flex-wrap:wrap; gap:6px; align-items:center; color:var(--accent); font-size:13.8px; font-weight:600; margin-bottom:9px; }
.event-summary h2 { font-size:29px; line-height:1.14; font-weight:750; letter-spacing:-.8px; overflow-wrap:anywhere; }
.event-subtitle { font-size:15px; line-height:1.55; color:var(--muted); margin:11px 0 18px; }
.event-key-facts { display:grid; gap:14px; margin:0; }
.event-key-fact { display:flex; gap:11px; align-items:flex-start; }
.event-key-fact > span { display:grid; place-items:center; width:37px; height:37px; border-radius:11px; background:var(--accent-soft); color:var(--accent); flex-shrink:0; }
.event-key-fact svg { width:18px; height:18px; }
.event-key-fact dt { font-size:12.65px; color:var(--muted); line-height:1.3; margin-bottom:3px; }
.event-key-fact dd { font-size:15px; font-weight:600; line-height:1.45; margin:0; }
.event-deadline-pill { display:inline-flex; align-items:center; flex-wrap:wrap; gap:6px; margin-top:17px; padding:8px 10px; border-radius:7px; background:#f5f2fa; font-size:12.65px; line-height:1.4; color:var(--purple); }
.event-deadline-pill.closed { background:#f9f1e9; color:#916137; }
.event-deadline-pill svg { width:15px; height:15px; }
.event-tabs { display:flex; position:sticky; top:0; z-index:5; background:#fffffffa; backdrop-filter:blur(12px); border-block:1px solid var(--line); padding:0 19px; }
.event-tab { position:relative; display:flex; align-items:center; justify-content:center; flex:1; font-size:13.8px; line-height:1.4; min-height:53px; padding:10px 4px; color:var(--muted); white-space:nowrap; }
.event-tab[aria-selected=true] { color:var(--accent); font-weight:700; }
.event-tab[aria-selected=true]::after { content:''; position:absolute; left:12px; right:12px; bottom:-1px; height:3px; background:var(--accent); border-radius:3px 3px 0 0; }
.event-panel { padding:24px 22px 30px; }
.event-section + .event-section { margin-top:28px; }
.event-section h3 { font-size:21px; letter-spacing:-.45px; line-height:1.3; margin-bottom:13px; }
.event-section > p { font-size:16px; color:#776f7e; line-height:1.65; }
.event-genres { display:flex; flex-wrap:wrap; gap:7px; margin-top:17px; }
.event-genres span { padding:7px 10px; background:#f6f3f8; border:1px solid #eee7f1; border-radius:7px; color:var(--purple); font-size:12.65px; line-height:1.4; }
.event-highlights { display:grid; gap:0; margin:22px 0 0; border:1px solid var(--line); border-radius:13px; overflow:hidden; }
.event-highlights > div { display:flex; justify-content:space-between; gap:15px; padding:13px; border-bottom:1px solid var(--line); align-items:flex-start; }
.event-highlights > :last-child { border:0; }
.event-highlights dt { font-size:13.8px; color:var(--muted); }
.event-highlights dd { margin:0; font-size:13.8px; font-weight:600; text-align:right; max-width:66%; line-height:1.5; }
.full-regulations { margin-top:27px; border-top:1px solid var(--line); }
.full-regulations > summary { list-style:none; display:flex; justify-content:space-between; gap:15px; align-items:center; padding:21px 0; cursor:pointer; }
.full-regulations > summary::-webkit-details-marker { display:none; }
.full-regulations > summary strong { display:block; font-size:20px; letter-spacing:-.4px; }
.full-regulations > summary small { display:block; font-size:12.65px; line-height:1.5; color:var(--muted); margin-top:5px; }
.full-regulations > summary svg { width:20px; height:20px; color:var(--muted); flex-shrink:0; transition:transform .15s; }
.full-regulations[open] > summary svg { transform:rotate(180deg); }
.event-prose { font-size:16px; line-height:1.7; color:#59515f; overflow-wrap:anywhere; }
.event-prose p,.event-prose blockquote { margin:0 0 16px; }
.event-prose strong,.event-prose b { color:#352d3c; font-weight:650; }
.event-prose h2,.event-prose h3,.event-prose h4 { font-size:20px; line-height:1.4; letter-spacing:-.3px; margin:24px 0 13px; }
.event-prose ul,.event-prose ol { padding-left:22px; margin:10px 0 19px; }
.event-prose li { padding-left:3px; margin-bottom:7px; }
.event-prose a { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.event-prose img { max-width:100%; height:auto; }
.regulation-table { display:grid; gap:10px; margin:18px 0 23px; }
.regulation-row { border:1px solid var(--line); border-radius:11px; padding:14px; margin:0; display:grid; gap:11px; background:#fcfbfd; }
.regulation-row dt { color:var(--muted); font-size:12.65px; line-height:1.4; margin-bottom:3px; }
.regulation-row dd { margin:0; font-size:15px; line-height:1.6; color:var(--ink); }
.event-source { font-size:12.65px; line-height:1.65; color:var(--muted); margin-top:25px; padding-top:19px; border-top:1px solid var(--line); }
.event-source a { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.event-footer { display:flex; gap:10px; flex-shrink:0; padding:12px 20px calc(13px + env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:white; }
.event-footer .save-button { width:50px; height:50px; border-radius:12px; background:var(--accent-soft); color:var(--accent); flex-shrink:0; }
.event-footer .primary-button { flex:1; min-width:0; font-size:15px; min-height:50px; padding:12px; }
.event-organizer-head { display:flex; align-items:center; gap:13px; margin-bottom:22px; }
.event-organizer-head img,.event-organizer-head .avatar-fallback { width:70px; height:70px; object-fit:contain; border:1px solid var(--line); padding:6px; border-radius:17px; background:white; flex-shrink:0; }
.event-organizer-head small { color:var(--accent); font-size:12.65px; display:block; margin-bottom:5px; }
.event-organizer-head h3 { font-size:21px; line-height:1.3; letter-spacing:-.4px; overflow-wrap:anywhere; }
.organizer-description { display:grid; gap:8px; margin-bottom:22px; }
.organizer-description p { font-size:15px; line-height:1.55; color:var(--muted); }
.event-contacts { display:grid; gap:9px; margin-top:17px; }
.event-contact { display:flex; align-items:center; gap:11px; padding:13px; border:1px solid var(--line); border-radius:11px; min-width:0; }
.event-contact > span:first-child { width:36px; height:36px; flex-shrink:0; display:grid; place-items:center; color:var(--purple); background:#f5f2f9; border-radius:10px; }
.event-contact svg { width:18px; height:18px; }
.event-contact small { display:block; color:var(--muted); font-size:12.65px; margin-bottom:4px; }
.event-contact strong { display:block; font-size:14.95px; font-weight:600; overflow-wrap:anywhere; line-height:1.45; }
.event-organizer-more { margin-top:23px; width:100%; font-size:15px; }
.application-status { padding:19px; border-radius:14px; background:var(--accent-soft); border:1px solid #f0d7e6; margin-bottom:24px; }
.application-status.closed { background:#faf3eb; border-color:#f0e2d1; }
.application-status small { font-size:12.65px; color:var(--accent); display:block; margin-bottom:7px; }
.application-status.closed small { color:#916137; }
.application-status strong { font-size:25px; letter-spacing:-.5px; line-height:1.2; display:block; }
.application-status p { font-size:13.8px; color:var(--muted); line-height:1.6; margin-top:9px; }
.application-steps { list-style:none; padding:0; margin:15px 0 0; counter-reset:application; display:grid; gap:16px; }
.application-steps li { counter-increment:application; display:flex; gap:12px; font-size:16px; line-height:1.6; color:#655c6d; }
.application-steps li::before { content:counter(application); display:grid; place-items:center; width:27px; height:27px; flex-shrink:0; background:#f2eef7; color:var(--purple); border-radius:50%; font-size:13.8px; font-weight:700; margin-top:1px; }
.application-documents { display:grid; gap:10px; margin-top:15px; }
.application-document { display:flex; align-items:center; gap:12px; border:1px solid #eadce7; border-radius:12px; padding:16px 14px; background:#fdf9fc; }
.application-document > svg { color:var(--accent); width:24px; height:24px; flex-shrink:0; }
.application-document > span:not(.download-icon) { flex:1; min-width:0; }
.application-document strong { display:block; font-size:15px; font-weight:650; }
.application-document small { display:block; color:var(--muted); font-size:12.65px; margin-top:5px; }
.application-document .download-icon { flex:0 0 18px; width:18px; height:18px; }
.application-document .download-icon svg { width:18px; height:18px; }
.application-no-file { border:1px dashed #e3d6e5; border-radius:11px; padding:16px; font-size:15px; line-height:1.6; color:var(--muted); margin-top:15px; }
.participation-fees { display:grid; margin:0; }
.participation-fees > div { padding:15px 0; border-bottom:1px solid var(--line); }
.participation-fees dt { font-size:14.95px; line-height:1.5; color:#706578; margin-bottom:5px; }
.participation-fees dd { margin:0; font-size:19px; line-height:1.4; color:var(--purple); font-weight:650; }
.participation-fees small { display:block; color:var(--muted); font-size:12.65px; line-height:1.6; margin-top:6px; }
.application-requirements { margin:14px 0 0; padding-left:19px; color:#655c6d; font-size:16px; line-height:1.65; }
.application-requirements li { margin:0 0 10px; padding-left:3px; }
.application-note { padding:16px; border:1px solid var(--line); border-radius:11px; background:#fcfbfd; color:var(--muted); font-size:14px; line-height:1.65; }
.poster-dialog { inset:0; padding:0; border:0; margin:auto; width:100%; max-width:var(--app-width); height:100dvh; max-height:100dvh; background:#19121f; }
.poster-dialog::backdrop { background:#19121ff5; }
.poster-dialog[open] { display:flex; align-items:center; justify-content:center; }
.poster-dialog > img { display:block; width:100%; height:100%; object-fit:contain; }
.poster-dialog > button { position:absolute; top:calc(15px + env(safe-area-inset-top)); right:16px; background:#ffffffdf; color:#392c42; z-index:1; }
@media(max-width:360px) {
  .event-summary,.event-panel { padding-left:18px; padding-right:18px; }
  .event-hero { height:235px; }
  .event-summary h2 { font-size:27px; }
  .event-tabs { padding-inline:10px; }
  .event-tab { font-size:12.65px; }
  .event-footer { padding-left:16px; padding-right:16px; }
  .event-footer .primary-button { font-size:14px; }
  .application-status { padding:16px; }
  .application-status strong { font-size:23px; }
  .event-organizer-head { align-items:flex-start; gap:10px; }
  .event-organizer-head img,.event-organizer-head .avatar-fallback { width:59px; height:59px; }
  .event-organizer-head h3 { font-size:19px; }
}
@media(min-width:600px) { .detail-sheet { inset:15px 0; height:calc(100dvh - 30px); max-height:calc(100dvh - 30px); border-radius:20px; } }
