/* AVE Design Studio — «Все работы»: стена всех работ по годам (страница vse-raboty.php, генератор migration/tools/build_everything.js) */
.ev-page { --ev-ink: #17181d; --ev-text: #3b3e47; --ev-muted: #6f7380; --ev-line: #e3e5ea; --ev-soft: #f5f6f8; --ev-red: #c80000; --ev-top: 84px; --ev-bar: 62px; }
.ev-wall { overflow-x: clip; padding-bottom: 40px; background: #fff; }
.ev-wrap { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.ev-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* цифры в шапке */
.ev-kpi { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 26px 0 0; padding: 0; list-style: none; }
.ev-kpi li { display: flex; flex-direction: column; gap: 2px; }
.ev-kpi b { color: #fff; font: 800 30px/1.1 'Open Sans', Arial, sans-serif; letter-spacing: -.02em; }
.ev-kpi span { color: rgba(255, 255, 255, .62); font-size: 13px; line-height: 1.35; }

/* липкая панель фильтров */
.ev-bar { position: sticky; top: var(--ev-top); z-index: 30; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--ev-line); }
.ev-bar__in { display: flex; align-items: center; gap: 16px; min-height: 62px; }
.ev-chips { display: flex; flex: 1; min-width: 0; gap: 6px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.ev-chips::-webkit-scrollbar { display: none; }
.ev-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--ev-line); border-radius: 999px; background: #fff; color: var(--ev-ink); font: 600 13px/1.3 'Open Sans', Arial, sans-serif; white-space: nowrap; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.ev-chip span { color: var(--ev-muted); font-size: 12px; font-weight: 700; }
.ev-chip:hover { border-color: rgba(200, 0, 0, .4); }
.ev-chip.is-active, .ev-chip.is-active:hover { border-color: var(--ev-ink); background: var(--ev-ink); color: #fff; }
.ev-chip.is-active span { color: rgba(255, 255, 255, .62); }
.ev-chip:focus-visible, .ev-ylink:focus-visible, .ev-reset:focus-visible, .ev-more__card:focus-visible { outline: 2px solid var(--ev-red); outline-offset: 2px; }
.ev-found { flex: none; margin: 0; color: var(--ev-muted); font-size: 13px; white-space: nowrap; }
.ev-found b { color: var(--ev-ink); font-size: 15px; }

/* переход по годам */
.ev-years { display: flex; flex-wrap: wrap; gap: 4px 2px; margin: 22px 0 6px; }
.ev-ylink { padding: 4px 9px; border-radius: 999px; color: var(--ev-ink); font: 700 13px/1.3 'Open Sans', Arial, sans-serif; text-decoration: none; transition: background-color .15s, color .15s; }
.ev-ylink sup { margin-left: 2px; color: var(--ev-muted); font-size: 10px; font-weight: 700; }
.ev-ylink:hover { background: var(--ev-soft); color: var(--ev-red); text-decoration: none; }
.ev-ylink[hidden] { display: none; }
.ev-note { max-width: 860px; margin: 0 0 10px; color: var(--ev-muted); font-size: 13px; line-height: 1.55; }

/* год: крупная цифра слева, плитки справа */
.ev-yr { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 0 24px; padding: 26px 0 6px; border-top: 1px solid var(--ev-line); content-visibility: auto; contain-intrinsic-size: auto 420px; scroll-margin-top: calc(var(--ev-top) + var(--ev-bar) + 8px); }
.ev-yr[hidden] { display: none; }
.ev-yr__h { align-self: start; position: sticky; top: calc(var(--ev-top) + var(--ev-bar) + 18px); display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; text-transform: none; }
.ev-yr__n { color: var(--ev-ink); font: 800 44px/1 'Open Sans', Arial, sans-serif; letter-spacing: -.03em; }
.ev-yr[data-y="none"] .ev-yr__n, .ev-yr[data-y="logos"] .ev-yr__n { font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.ev-yr__c { color: var(--ev-muted); font: 600 13px/1.3 'Open Sans', Arial, sans-serif; }
.ev-yr__c b { color: var(--ev-red); font-weight: 800; }

/* плитки */
.ev-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.ev-it { margin: 0; padding: 0; }
.ev-it[hidden] { display: none; }
.ev-a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--ev-soft); box-shadow: inset 0 0 0 1px rgba(23, 24, 29, .06); outline: none; transition: transform .18s ease, box-shadow .18s ease; }
.ev-a img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter .18s ease; }
.ev-a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(23, 24, 29, .06); pointer-events: none; }
.ev-a:hover, .ev-a:focus-visible { z-index: 2; transform: scale(1.06); box-shadow: 0 10px 26px rgba(23, 24, 29, .28); }
.ev-a:focus-visible::after { box-shadow: inset 0 0 0 3px var(--ev-red); }
.ev-grid:hover .ev-a:not(:hover) img { filter: saturate(.55) brightness(.94); }

/* подсказка с названием */
.ev-tip { position: fixed; z-index: 1000; top: 0; left: 0; max-width: 280px; padding: 9px 12px 10px; border-radius: 10px; background: var(--ev-ink); color: rgba(255, 255, 255, .7); font: 400 12px/1.4 'Open Sans', Arial, sans-serif; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); pointer-events: none; }
.ev-tip b { display: block; margin-bottom: 3px; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.3; }
.ev-tip[hidden] { display: none; }

.ev-empty { padding: 40px 0; color: var(--ev-muted); font-size: 16px; text-align: center; }
.ev-reset { padding: 0; border: 0; background: none; color: var(--ev-red); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* разделы */
.ev-more { padding: 44px 0 10px; background: var(--ev-soft); }
.ev-more__h { margin: 0 0 18px; color: var(--ev-ink); font: 800 26px/1.25 'Open Sans', Arial, sans-serif; text-transform: none; }
.ev-more__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ev-more__card { display: block; padding: 22px 24px; border: 1px solid var(--ev-line); border-radius: 14px; background: #fff; color: var(--ev-text); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ev-more__card:hover { border-color: rgba(200, 0, 0, .35); box-shadow: 0 16px 40px rgba(23, 24, 29, .1); transform: translateY(-2px); color: var(--ev-text); text-decoration: none; }
.ev-more__card b { display: block; margin-bottom: 6px; color: var(--ev-ink); font-size: 18px; font-weight: 800; }
.ev-more__card b::after { content: ' \2192'; color: var(--ev-red); }
.ev-more__card span { display: block; font-size: 14px; line-height: 1.55; }
.ev-page .bl-related--cta { background: var(--ev-soft); }

@media (max-width: 1399px) { .ev-grid { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
@media (max-width: 1199px) { .ev-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } .ev-wrap { padding: 0 24px; } }
@media (max-width: 991px) {
    .ev-page { --ev-top: 64px; --ev-bar: 56px; }
    .ev-bar__in { min-height: 56px; }
    .ev-yr { display: block; padding-top: 18px; }
    .ev-yr__h { position: static; flex-direction: row; align-items: baseline; gap: 12px; margin-bottom: 12px; }
    .ev-yr__n { font-size: 34px; }
    .ev-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .ev-more__grid { grid-template-columns: 1fr; gap: 10px; }
    .ev-kpi { gap: 10px 26px; }
    .ev-kpi b { font-size: 24px; }
}
@media (max-width: 767px) { .ev-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .ev-found { display: none; } }
@media (max-width: 575px) {
    .ev-wrap { padding: 0 15px; }
    .ev-chips { margin: 0 -15px; padding: 9px 15px; }
    .ev-chip { padding: 7px 12px; }
    .ev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
    .ev-yr__n { font-size: 28px; }
    .ev-years { flex-wrap: nowrap; margin: 14px -15px 6px; padding: 0 15px 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .ev-years::-webkit-scrollbar { display: none; }
    .ev-ylink { flex: none; }
    .ev-kpi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ev-kpi b { font-size: 22px; }
    .ev-more__h { font-size: 22px; }
}
@media (hover: none) { .ev-a:hover { transform: none; box-shadow: none; } .ev-grid:hover .ev-a:not(:hover) img { filter: none; } }
@media (prefers-reduced-motion: reduce) { .ev-a, .ev-a img, .ev-more__card { transition: none; } .ev-a:hover, .ev-a:focus-visible { transform: none; } }
