/* Энциклопедия праздников Браво */
.ency-body { background: var(--paper); color: var(--ink); }
.ency-main { padding: 110px 0 90px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; color: var(--muted-l); margin-bottom: 26px; }
.crumbs a { color: var(--muted-l); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs i { font-style: normal; opacity: .5; }
.ency-head { max-width: 900px; margin-bottom: 34px; }
.ency-head h1, .ency-hero h1 { font: 800 clamp(32px, 4.6vw, 60px)/1.04 var(--f); letter-spacing: -.035em; margin: 14px 0 0; }
.ency-cat { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--lime); font: 600 13px/1 var(--f); text-decoration: none; }
.ency-lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--muted-l); margin: 18px 0 0; max-width: 62ch; }
.ency-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; font-size: 14px; color: var(--muted-l); }
.ency-meta span::before { content: '• '; color: var(--ink); }
.ency-meta span:first-child::before { content: ''; }

.ency-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.ency-side { position: sticky; top: 100px; display: grid; gap: 14px; }
.ency-toc { padding: 20px; border-radius: var(--r-s); background: #fff; border: 1px solid var(--line-l); font-size: 14.5px; }
.ency-toc b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-l); margin-bottom: 10px; }
.ency-toc ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.ency-toc a { color: var(--ink); text-decoration: none; line-height: 1.35; }
.ency-toc a:hover { text-decoration: underline; }
.ency-side-btn { width: 100%; }

.ency-article { max-width: 760px; font-size: 18px; line-height: 1.7; }
.ency-article > p:first-child { font-size: 19.5px; }
.ency-article h2 { font: 700 clamp(25px, 2.4vw, 32px)/1.2 var(--f); letter-spacing: -.02em; margin: 52px 0 16px; scroll-margin-top: 90px; }
.ency-article h3 { font: 700 21px/1.3 var(--f); margin: 32px 0 10px; }
.ency-article p { margin: 0 0 16px; }
.ency-article ul, .ency-article ol { margin: 0 0 20px; padding-left: 24px; }
.ency-article li { margin: 0 0 8px; }
.ency-article li::marker { color: var(--ink); font-weight: 700; }
.ency-article a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime-2); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.ency-article blockquote { margin: 26px 0; padding: 20px 24px; border-radius: var(--r-s); background: var(--ink); color: #fff; font-size: 17px; }
.ency-article blockquote p:last-child { margin: 0; }
.ency-article blockquote b { color: var(--lime); }
.ency-article .tip { margin: 26px 0; padding: 20px 24px; border-radius: var(--r-s); background: #fff; border-left: 5px solid var(--lime-2); font-size: 17px; }
.ency-article .tip::before { content: 'Совет организатора'; display: block; font: 700 12px/1 var(--f); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-l); margin-bottom: 10px; }
.ency-article .tip p:last-child { margin: 0; }
.ency-article table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 16px; background: #fff; border-radius: var(--r-s); overflow: hidden; }
.ency-article th, .ency-article td { padding: 12px 14px; border-bottom: 1px solid var(--line-l); text-align: left; vertical-align: top; }
.ency-article th { background: var(--ink); color: #fff; font-weight: 600; }
.ency-faq { margin-top: 44px; }
.ency-faq .faq-list summary { font-size: 18px; }

.ency-cta { margin: 56px 0 0; padding: clamp(24px, 3vw, 40px); border-radius: 26px; background: var(--ink); color: #fff; display: grid; gap: 22px; }
.ency-cta .kicker { color: var(--muted-d); margin-bottom: 12px; }
.ency-cta .kicker::before { background: var(--lime); }
.ency-cta h2 { font: 700 clamp(24px, 2.6vw, 34px)/1.12 var(--f); letter-spacing: -.02em; margin: 0 0 10px; }
.ency-cta p { margin: 0; color: var(--muted-d); font-size: 16px; line-height: 1.55; }
.ency-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ency-cta-btns .btn { min-height: 52px; font-size: 15px; }

.ency-rel { margin-top: 64px; }
.ency-rel h2, .ency-latest h2 { font: 700 clamp(26px, 2.6vw, 36px)/1.1 var(--f); letter-spacing: -.02em; margin-bottom: 22px; }
.ency-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ency-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--line-l); text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s; }
.ency-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(11, 11, 12, .35); }
.ency-card-cat { font: 600 12.5px/1.3 var(--f); color: var(--muted-l); }
.ency-card b { font: 700 20px/1.25 var(--f); letter-spacing: -.01em; }
.ency-card-desc { font-size: 15px; color: var(--muted-l); line-height: 1.5; }
.ency-card-meta { margin-top: auto; padding-top: 8px; display: inline-flex; gap: 8px; align-items: center; font: 600 14px/1 var(--f); }

.ency-hero { max-width: 960px; margin-bottom: 40px; }
.ency-hero .kicker { color: var(--muted-l); }
.ency-hero .kicker::before { background: var(--ink); }
.ency-search { display: block; margin-top: 26px; max-width: 640px; }
.ency-search input { width: 100%; min-height: 60px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; font: 500 17px var(--f); color: var(--ink); }
.ency-search input:focus { outline: 3px solid var(--lime); outline-offset: 2px; }
.ency-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 56px; }
.ency-catcard { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--r); background: var(--ink); color: #fff; text-decoration: none; transition: transform .4s var(--ease); }
.ency-catcard:hover { transform: translateY(-4px); }
.ency-catcard .ico { font-size: 28px; }
.ency-catcard b { font: 700 19px/1.2 var(--f); }
.ency-catcard span:not(.ico) { font-size: 14px; color: var(--muted-d); line-height: 1.45; }
.ency-catcard em { margin-top: auto; padding-top: 8px; font-style: normal; font: 600 13px/1 var(--f); color: var(--lime); }
.ency-cats-mini { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.ency-cats-mini a { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-l); background: #fff; text-decoration: none; font-size: 14.5px; font-weight: 500; }
.ency-empty { font-size: 18px; color: var(--muted-l); }

@media (max-width: 1100px) { .ency-cats { grid-template-columns: repeat(2, 1fr); } .ency-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) {
  .ency-layout { grid-template-columns: 1fr; }
  .ency-side { position: static; order: -1; }
  .ency-side-btn { display: none; }
}
@media (max-width: 640px) {
  .ency-main { padding: 90px 0 70px; }
  .ency-grid, .ency-cats { grid-template-columns: 1fr; }
  .ency-article { font-size: 17px; }
  .ency-cta-btns .btn { flex: 1 1 100%; }
}

.ency-body .hdr .logo b { color: #fff; }
.ency-body .hdr .logo small { color: var(--muted-d); }


@media (max-width: 640px) { .ency-article table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } .ency-article th, .ency-article td { min-width: 120px; } }
/* фото статей (Unsplash, Pexels и др. — лицензии, разрешающие коммерческое использование) */
.ency-hero-img { margin: 0 0 40px; max-width: 1100px; }
.ency-hero-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); background: #e9e8e2; }
.ency-hero-img figcaption { margin-top: 10px; font-size: 13px; color: var(--muted-l); }
.ency-hero-img figcaption a { color: inherit; }
.ency-card.has-img { padding-top: 0; overflow: hidden; }
.ency-card-img { display: block; margin: 0 -22px 4px; aspect-ratio: 16 / 9; overflow: hidden; background: #e9e8e2; }
.ency-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ency-card:hover .ency-card-img img { transform: scale(1.04); }
.ency-sources { margin-top: 40px; font-size: 14.5px; color: var(--muted-l); }
.ency-sources h2 { font-size: 20px !important; margin: 0 0 8px !important; color: var(--ink); }
.ency-sources ol { padding-left: 20px; }
.ency-sources a { color: inherit; overflow-wrap: anywhere; }