/* Стили внутренних страниц из утверждённых макетов: Work/design/assets/pages.css + news-pages.css (копия, не править здесь — правки в style.css темы). */
/* =========================================================
   Внутренние страницы: текстовая страница (A, B, C) и «Контакты» (1, 2).
   Подключается после style.css. Токены — из style.css.
   ========================================================= */

/* ---------- Общие элементы ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; font-size: .8125rem; letter-spacing: .04em; }
.crumbs a { color: inherit; opacity: .75; }
.crumbs a:hover { opacity: 1; color: var(--yellow); }
.crumbs span[aria-current] { opacity: 1; }
.crumbs li + li::before { content: "›"; margin-right: 8px; opacity: .5; }
.crumbs { list-style: none; padding: 0; }
.page-title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); text-transform: uppercase; line-height: 1.02; }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.6; color: var(--ink); }
.prose { color: var(--text); }
.prose h2 { font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); text-transform: uppercase; margin: 2em 0 .7em; }
.prose h3 { font-size: 1.1875rem; margin: 1.6em 0 .6em; color: var(--navy); }
.prose p { margin: 0 0 1em; }
.person-list { list-style: none; padding: 0; margin: 0 0 1.4em; border-top: 1px solid var(--line); }
.person-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.person-list .role { grid-column: 1 / -1; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.person-list .name { font-weight: 700; color: var(--ink); }
.person-list .city { font-size: .875rem; color: var(--muted); }
.organs { list-style: none; padding: 0; margin: 0 0 1.4em; counter-reset: org; }
.organs li { counter-increment: org; position: relative; padding: 10px 0 10px 44px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.organs li::before {
  content: counter(org, lower-alpha); position: absolute; left: 4px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  display: grid; place-items: center; font-family: var(--font-display); font-size: .8125rem; color: var(--white); background: var(--navy);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.president {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
  padding: 18px 20px; margin: 1.4em 0; background: var(--white); border-left: 6px solid var(--red);
}
.president .diamond-badge { width: 56px; height: 56px; display: grid; place-items: center; background: var(--navy); color: var(--yellow); font-family: var(--font-display); font-weight: 700; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.president b { display: block; font-size: 1.125rem; color: var(--ink); }
.president span { font-size: .875rem; color: var(--muted); }
.doc-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); }
.doc-link .file { width: 56px; }

/* ---------- A. Классика с боковым меню ---------- */
.pa-hero { background: var(--navy-deep); color: var(--white); padding: clamp(28px, 4vw, 56px) 0; border-bottom: 5px solid var(--red); }
.pa-hero .page-title { color: var(--white); }
.pa-body { padding: clamp(32px, 4vw, 64px) 0 var(--section); background: var(--paper); }
.pa-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.pa-main { background: var(--white); padding: clamp(22px, 3vw, 44px); }
.pa-main .prose { max-width: 72ch; }
/* Колонка высокая (виджеты) — без закрепления, иначе нижние виджеты недоступны при прокрутке */
.side { display: grid; gap: 20px; }
.side-nav { background: var(--white); border-top: 4px solid var(--navy); }
.side-nav h2 { font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; padding: 16px 20px 8px; }
.side-nav a { display: flex; justify-content: space-between; align-items: center; padding: 11px 20px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); transition: background .2s, color .2s; }
.side-nav a:hover { background: var(--paper); color: var(--navy); }
.side-nav a[aria-current="page"] { background: var(--navy); color: var(--white); }
.side-card { background: var(--navy-deep); color: rgba(255,255,255,.85); padding: 20px; }
.side-card h2 { color: var(--white); font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.side-card a { color: var(--white); font-weight: 600; }
.side-card a:hover { color: var(--yellow); }
.side-card p { margin: 0 0 6px; }

/* ---------- B. Редакционная ---------- */
.pb-hero { position: relative; overflow: hidden; color: var(--white); padding: clamp(36px, 5vw, 72px) 0 clamp(28px, 4vw, 48px); background: var(--ink); }
.pb-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--flag-blue) 0 33.34%, var(--flag-yellow) 33.34% 66.67%, var(--flag-red) 66.67%); }
.pb-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 4px 4px, linear-gradient(90deg, rgba(14,15,20,.88), rgba(14,15,20,.62)); }
.pb-hero .wrap { position: relative; z-index: 1; }
.pb-hero .page-title { color: var(--white); max-width: 18ch; }
.pb-hero .lead { color: rgba(255,255,255,.88); max-width: 60ch; margin: 16px 0 0; }
.toc { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 85px; z-index: 5; }
.toc ul { display: flex; gap: 6px; overflow-x: auto; list-style: none; margin: 0; padding: 12px 0; scrollbar-width: thin; }
.toc a { display: inline-flex; white-space: nowrap; padding: 6px 14px; border: 1px solid var(--line); font-size: .875rem; font-weight: 600; color: var(--ink); }
.toc a:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pb-body { padding: clamp(32px, 4vw, 64px) 0 var(--section); }
.pb-col { max-width: 760px; margin: 0 auto; }
.pb-col .prose h2 { padding-top: 12px; border-top: 2px solid var(--ink); scroll-margin-top: 150px; }
.roster { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .9375rem; }
.roster th { text-align: left; font-family: var(--font-display); font-weight: 500; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--ink); }
.roster td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.roster td:nth-child(2) { font-weight: 700; color: var(--ink); }
.roster td:last-child { color: var(--muted); white-space: nowrap; }

/* ---------- C. Карточки ---------- */
.pc-hero { position: relative; overflow: hidden; color: var(--white); padding: clamp(56px, 7vw, 120px) 0 clamp(36px, 4vw, 56px); background: var(--navy-deep); }
.pc-hero::before { content: ""; position: absolute; inset: 0; background: url("img/n1662.jpg") center 35% / cover no-repeat; filter: grayscale(1) contrast(1.15); opacity: .5; mix-blend-mode: luminosity; }
.pc-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,39,92,.97) 0%, rgba(20,39,92,.75) 60%, rgba(35,66,148,.6) 100%); }
.pc-hero .wrap { position: relative; z-index: 1; }
.pc-hero .page-title { color: var(--white); }
.pc-intro { padding: clamp(32px, 4vw, 56px) 0 0; }
.pc-intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.organ-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); list-style: none; padding: 0; margin: 0; counter-reset: ot; }
.organ-tiles li { counter-increment: ot; background: var(--white); padding: 16px 14px; font-weight: 700; font-size: .9375rem; line-height: 1.3; color: var(--ink); min-height: 96px; display: flex; flex-direction: column; gap: 10px; }
.organ-tiles li::before { content: counter(ot, lower-alpha); width: 28px; height: 28px; display: grid; place-items: center; font-family: var(--font-display); font-size: .8125rem; color: var(--ink); background: var(--yellow); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.pc-cards { padding: clamp(32px, 4vw, 56px) 0 var(--section); }
.commission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
.commission { background: var(--white); border-top: 4px solid var(--navy); padding: 18px 20px 6px; }
.commission h3 { font-size: 1.0625rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.commission .person-list { border-top: 0; margin: 0; }
.commission .person-list li:last-child { border-bottom: 0; }

/* ---------- Контакты ---------- */
.contact-hero { background: var(--navy-deep); color: var(--white); padding: clamp(28px, 4vw, 56px) 0; border-bottom: 5px solid var(--red); }
.contact-hero .page-title { color: var(--white); }
.k1-body { padding: clamp(32px, 4vw, 64px) 0; background: var(--paper); }
.k1-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 3vw, 48px); align-items: stretch; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; background: var(--line); border: 2px solid var(--line); }
.contact-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 18px 20px; background: var(--white); }
.contact-item .ico { width: 44px; height: 44px; display: grid; place-items: center; background: var(--navy); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.contact-item .ico::before { content: ""; width: 18px; height: 18px; background: var(--yellow); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.contact-item .label { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-item a, .contact-item b { font-weight: 700; color: var(--ink); font-size: 1.0625rem; }
.contact-item a:hover { color: var(--navy); }
.contact-item .more { display: block; font-size: .9375rem; font-weight: 600; }
.ico--map { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.ico--tel { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
.ico--mail { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm9 7.2L4 7.3V17h16V7.3z'/%3E%3C/svg%3E"); }
.ico--user { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5zm0 2c-4 0-9 2-9 5v2h18v-2c0-3-5-5-9-5z'/%3E%3C/svg%3E"); }
.map-frame { position: relative; min-height: 380px; background: var(--line); border: 5px solid var(--white); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.form-section { padding: clamp(32px, 4vw, 64px) 0; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cform .full { grid-column: 1 / -1; }
.cform label { display: grid; gap: 6px; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.cform input, .cform textarea, .cform select {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #CFCAC1; background: var(--white); color: var(--ink); border-radius: 0;
}
.cform input:focus, .cform textarea:focus { outline: 3px solid var(--yellow); outline-offset: 0; border-color: var(--navy); }
.cform textarea { min-height: 150px; resize: vertical; }
.cform .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; letter-spacing: 0; font-size: .875rem; color: var(--text); }
.cform .consent input { width: 20px; height: 20px; padding: 0; margin-top: 2px; flex: none; accent-color: var(--navy); }
.cform .consent a { color: var(--navy); text-decoration: underline; }
.cform .note { font-size: .8125rem; color: var(--muted); margin: 0; }
.cform .btn { justify-self: start; cursor: pointer; }
.callout { background: var(--paper); padding: 20px 22px; border-left: 6px solid var(--navy); }
.callout h3 { font-size: 1.0625rem; text-transform: uppercase; margin-bottom: 8px; }
.callout p { margin: 0 0 8px; }
.dept-list { list-style: none; padding: 0; margin: 0; }
.dept-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.dept-list b { display: block; color: var(--ink); }
.dept-list a { color: var(--navy); font-weight: 600; }
.schools-strip { padding: 0 0 var(--section); }
.coach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.coach { background: var(--white); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.coach .school__area { margin: 0; }
.coach b { color: var(--ink); line-height: 1.3; }
.coach .coach__people { font-size: .875rem; color: var(--text); }
.coach .coach__people a { color: var(--navy); font-weight: 600; white-space: nowrap; }

/* 2. Карта во всю ширину */
.k2-map { position: relative; height: clamp(360px, 45vw, 520px); background: var(--line); }
.k2-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); }
.k2-card {
  position: absolute; left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); top: 50%; transform: translateY(-50%);
  width: min(400px, calc(100% - 2 * var(--gutter))); background: var(--navy-deep); color: rgba(255,255,255,.85);
  padding: 24px; border-top: 5px solid var(--red); box-shadow: 0 20px 50px rgba(14,15,20,.35);
}
.k2-card .page-title { color: var(--white); font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); margin-bottom: 14px; }
.k2-card .crumbs { color: rgba(255,255,255,.8); }
.k2-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.k2-card a { color: var(--white); font-weight: 700; }
.k2-card a:hover { color: var(--yellow); }
.k2-card .label { display: block; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .pa-grid, .pc-intro__grid, .k1-grid, .form-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .commission-grid { grid-template-columns: repeat(2, 1fr); }
  .coach-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .organ-tiles { grid-template-columns: repeat(2, 1fr); }
  .commission-grid, .coach-grid, .cform { grid-template-columns: 1fr; }
  .toc { top: 57px; }
  .roster td:last-child { white-space: normal; }
  .k2-map { height: auto; display: flex; flex-direction: column; }
  .k2-map iframe { position: relative; height: 300px; order: 2; }
  .k2-card { position: relative; left: auto; top: auto; transform: none; width: 100%; box-shadow: none; }
  .map-frame { min-height: 300px; }
}

/* ---------- Виджеты боковой колонки ---------- */
.side { gap: 16px; }
.side-nav h2, .side-cal h2 { font-size: .9375rem; }
.side-cal { background: var(--white); border-top: 4px solid var(--navy); padding: 14px 16px 16px; }
.side-cal h2 { letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal__title { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 8px; border: 0; background: none; cursor: pointer;
  font: 600 1rem var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); transition: background .2s, color .2s; }
.cal__title::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; }
.cal__title:hover { background: var(--paper); color: var(--navy); }
.cal__title--static { cursor: default; }
.cal__title--static::after { content: none; }
.cal__head--years { justify-content: center; }
.cal__nav { width: 30px; height: 30px; border: 0; background: var(--navy); cursor: pointer; display: grid; place-items: center; transition: background .2s, opacity .2s; }
.cal__nav::before { content: ""; width: 8px; height: 8px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateX(2px) rotate(45deg); }
.cal__nav--next::before { transform: translateX(-2px) rotate(-135deg); }
.cal__nav:hover { background: var(--red); }
.cal__nav:disabled { opacity: .18; cursor: default; background: var(--navy); }
.cal__day.is-today { box-shadow: inset 0 0 0 2px var(--red); font-weight: 700; }
.cal__day.is-future { opacity: .35; }
.cal__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; margin: 8px 0 0; font-size: .75rem; color: var(--muted); }
.cal__today { padding: 4px 10px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font: 600 .75rem var(--font-body); color: var(--navy); transition: background .2s, color .2s, border-color .2s; }
.cal__today:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.cal__pick { display: grid; gap: 4px; }
.cal__pick--months { grid-template-columns: repeat(3, 1fr); }
.cal__pick--years { grid-template-columns: repeat(4, 1fr); }
.cal__cell { display: grid; place-items: center; gap: 1px; min-height: 48px; padding: 4px 2px; border: 1px solid var(--line); background: var(--white); cursor: pointer;
  font: 600 .875rem var(--font-display); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.cal__cell small { font: 500 .6875rem var(--font-body); color: var(--muted); text-transform: none; letter-spacing: 0; }
.cal__cell:hover:not(:disabled) { border-color: var(--navy); background: var(--paper); }
.cal__cell.is-on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.cal__cell.is-on small { color: var(--yellow); }
.cal__cell:disabled { opacity: .35; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal__dow { font-size: .6875rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); padding: 4px 0; }
.cal__day { display: grid; place-items: center; aspect-ratio: 1; font-size: .875rem; color: var(--text); }
.cal__day.is-weekend, .cal__dow.is-weekend { color: var(--red); }
.cal__day.has-news { background: var(--navy); color: var(--white); font-weight: 700; }
.cal__day.has-news:hover { background: var(--red); }

/* ---------- D. Наглядная «Структура» ---------- */
.pd-lead { color: rgba(255,255,255,.85); max-width: 70ch; margin: 14px 0 0; }
.pd-chart { padding: clamp(32px, 4vw, 56px) 0 8px; background: var(--paper); }
.pd-hint { font-size: .875rem; color: var(--muted); }
.org { display: grid; gap: 14px; }
.tier { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: stretch; }
.tier__label { display: flex; align-items: center; font-family: var(--font-display); font-weight: 600; font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--white); background: var(--navy-deep); padding: 12px 14px; }
.tier__nodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.node { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 14px 18px; background: var(--white); border-left: 4px solid var(--navy); transition: transform .25s var(--ease), box-shadow .25s, border-color .2s; }
.node:hover, .node:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14,15,20,.12); border-color: var(--red); }
.node--accent { background: var(--navy); border-color: var(--yellow); }
.node--accent .node__title { color: var(--white); } .node--accent .node__meta { color: var(--yellow); }
.node__title { font-weight: 700; color: var(--ink); line-height: 1.25; }
.node__meta { font-size: .8125rem; color: var(--muted); }
.pd-people { padding: clamp(32px, 4vw, 56px) 0 var(--section); background: var(--paper); }
.pd-search input { font: inherit; padding: 10px 14px; min-width: 280px; border: 1px solid #CFCAC1; background: var(--white); }
.pd-search input:focus { outline: 3px solid var(--yellow); border-color: var(--navy); }
.acc-list { display: grid; gap: 8px; }
.acc { background: var(--white); border-left: 4px solid var(--navy); scroll-margin-top: 110px; }
.acc[open] { border-left-color: var(--red); }
.acc summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; padding: 16px 52px 16px 20px; position: relative; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.acc[open] summary::after { transform: translateY(-30%) rotate(-135deg); border-color: var(--red); }
.acc__title { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; text-transform: uppercase; color: var(--ink); }
.acc__meta { font-size: .875rem; color: var(--muted); }
.acc .person-list { margin: 0 20px 12px; }
.pd-empty { padding: 16px 20px; background: var(--white); color: var(--muted); }
.pd-depts { max-width: 72ch; margin-top: 40px; }
@media (max-width: 760px) {
  .tier { grid-template-columns: 1fr; gap: 8px; }
  .tier__nodes { grid-template-columns: 1fr 1fr; }
  .pd-search input { min-width: 0; width: 100%; }
  .pd-search { width: 100%; }
}

/* ---------- Длинные списки «Структуры» — 2 столбца (порядок сверху вниз) ---------- */
@media (min-width: 761px) {
  .cols2 { display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--rows), auto); grid-template-columns: 1fr 1fr; column-gap: clamp(20px, 3vw, 40px); }
}
/* в узких карточках варианта C — всегда один столбец */
.commission .cols2 { display: block; }

/* =========================================================
   Новости: лента (A, B, C) и страница новости (1, 2).
   Подключается после style.css и pages.css. Токены — из style.css.
   ========================================================= */

/* ---------- Общие элементы ---------- */
.nmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .8125rem; color: var(--muted); margin-bottom: 10px; }
.nmeta time { font-variant-numeric: tabular-nums; }
.nmeta__views, .nc-views { display: inline-flex; align-items: center; gap: 5px; }
.nmeta__views::before, .nc-views::before { content: ""; width: 14px; height: 9px; border: 1.5px solid currentColor; border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--white), inset 0 0 0 5px currentColor; opacity: .8; }
.nmeta__photos::before { content: "▣ "; }
.ncat { display: inline-block; padding: 3px 8px 2px; font: 500 .6875rem/1.2 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--white); background: var(--navy); }
.ncat--pro { background: var(--red); }
.ncat--video { background: var(--ink); }
.ncat--photo { background: var(--flag-yellow); color: var(--ink); }

.nfilter { display: flex; flex-wrap: wrap; gap: 6px; }
.nfilter__btn { min-height: 38px; padding: 0 16px; border: 1px solid var(--line); background: var(--white); cursor: pointer;
  font: 500 .875rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.nfilter__btn:hover { border-color: var(--navy); color: var(--navy); }
.nfilter__btn.is-on { background: var(--navy); border-color: var(--navy); color: var(--white); }
[data-cat][hidden] { display: none !important; }

.npager { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 28px; }
.npager a, .npager span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 6px; font-weight: 700; color: var(--ink); background: var(--white); border: 1px solid var(--line); }
.npager a:hover { border-color: var(--navy); color: var(--navy); }
.npager [aria-current] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.npager .npager__gap { border: 0; background: none; min-width: 20px; }

.ncard { display: flex; flex-direction: column; background: var(--white); }
.ncard__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--line); }
.ncard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ncard:hover .ncard__media img { transform: scale(1.05); }
.ncard__body { padding: 18px 20px 22px; }
.ncard__title { font-size: 1.125rem; line-height: 1.25; }
.ncard__title a:hover, .nrow__title a:hover, .na-lead__title a:hover, .nc-text h3 a:hover { color: var(--navy); }
.ncard__excerpt { margin: 10px 0 0; font-size: .9375rem; color: var(--muted); }

/* ---------- Шапка ленты (A, C) ---------- */
.nl-head { background: var(--white); border-bottom: 1px solid var(--line); padding: clamp(24px, 3vw, 44px) 0 clamp(18px, 2vw, 28px); }
.nl-head .crumbs { color: var(--muted); }
.nl-head .crumbs a:hover { color: var(--navy); }
.nl-head__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.nl-head--dark { background: var(--navy-deep); color: var(--white); border-bottom: 5px solid var(--red); }
.nl-head--dark .page-title { color: var(--white); }
.nl-head--dark .crumbs { color: rgba(255,255,255,.75); }
.nl-head--dark .nfilter { margin-top: 20px; }
.nl-head--dark .nfilter__btn { background: transparent; border-color: rgba(255,255,255,.25); color: var(--white); }
.nl-head--dark .nfilter__btn:hover { border-color: var(--yellow); color: var(--yellow); }
.nl-head--dark .nfilter__btn.is-on { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

/* ---------- A. Журнал ---------- */
.na-body { background: var(--paper); padding: clamp(28px, 3vw, 48px) 0 var(--section); }
.na-lead { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); background: var(--navy-deep); color: rgba(255,255,255,.85); margin-bottom: clamp(20px, 2vw, 28px); }
.na-lead__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; }
.na-lead__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.na-lead:hover .na-lead__media img { transform: scale(1.04); }
.na-lead__body { padding: clamp(22px, 3vw, 44px); align-self: center; border-left: 6px solid var(--yellow); }
.na-lead .nmeta { color: rgba(255,255,255,.65); }
.na-lead__title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); line-height: 1.08; text-transform: uppercase; margin-bottom: 14px; }
.na-lead__title a { color: var(--white); }
.na-lead__title a:hover { color: var(--yellow); }
.na-lead .link-arrow { color: var(--yellow); }
.na-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.na-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; }
.na-more .npager { margin: 0; }
.na-more .btn { background: transparent; color: var(--navy); border-color: var(--navy); }
.na-more .btn:hover { background: var(--navy); color: var(--white); }

/* ---------- B. Лента с колонкой ---------- */
.nb-main .nfilter { margin-bottom: 16px; }
.nb-list { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.nrow { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; padding: 18px; background: var(--white); transition: background .2s; }
.nrow:hover { background: #FBFAF8; }
.nrow__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; align-self: start; }
.nrow__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.nrow:hover .nrow__media img { transform: scale(1.05); }
.nrow__title { font-size: 1.25rem; line-height: 1.22; margin-bottom: 8px; }
.nrow p { margin: 0; color: var(--muted); font-size: .9375rem; }

/* ---------- C. Хроника ---------- */
.nc-tools { display: flex; gap: 12px; }
.nc-tools label { display: grid; gap: 4px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.nc-tools select { min-height: 40px; min-width: 120px; padding: 0 10px; border: 0; font: 600 .9375rem var(--font-body); }
.nc-body { background: var(--white); padding: clamp(28px, 3vw, 48px) 0 var(--section); }
.nc-wrap { max-width: 980px; }
.nc-month + .nc-month { margin-top: 40px; }
.nc-month__title { position: sticky; top: 85px; z-index: 2; background: var(--white); padding: 10px 0; border-bottom: 2px solid var(--ink);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); text-transform: uppercase; }
.nc-month__title span { color: var(--red); }
.nc-list { list-style: none; margin: 0; padding: 0; }
.nc-item { display: grid; grid-template-columns: 64px 132px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.nc-date { text-align: center; line-height: 1; }
.nc-date b { display: block; font: 600 2.25rem/1 var(--font-display); color: var(--navy); }
.nc-date span { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nc-thumb { display: block; overflow: hidden; aspect-ratio: 16 / 10; }
.nc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.nc-item:hover .nc-thumb img { transform: scale(1.06); }
.nc-text h3 { margin-top: 6px; font-size: 1.125rem; line-height: 1.25; }
.nc-views { font-size: .8125rem; color: var(--muted); }

/* ---------- Страница новости ---------- */
.ns-title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.875rem); line-height: 1.06; text-transform: uppercase; margin-bottom: 20px; }
.crumbs--dark { color: var(--muted); }
.crumbs--dark a:hover { color: var(--navy); }
.ns-lead { margin: 0 0 24px; }
.ns-lead img { width: 100%; height: auto; }
.ns-text p { margin: 0 0 1em; }
.ns-text .lead { font-weight: 600; }
.nvideo { margin: 28px 0 8px; }
.nvideo__play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer; overflow: hidden; background: var(--ink); }
.nvideo__play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .8s var(--ease); }
.nvideo__play:hover img { opacity: 1; transform: scale(1.03); }
.nvideo__icon { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%) rotate(45deg); background: var(--red); transition: transform .3s var(--ease), background .3s; }
.nvideo__icon::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%) rotate(-45deg); border: 13px solid transparent; border-left: 21px solid var(--white); border-right: 0; }
.nvideo__play:hover .nvideo__icon { transform: translate(-50%, -50%) rotate(45deg) scale(1.08); background: var(--red-dark); }
.nvideo iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.nvideo figcaption { margin-top: 8px; font-size: .875rem; color: var(--muted); }
.nreels { font-size: .9375rem; color: var(--muted); }
.nreels a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

.ngal { margin: 32px 0; }
.ngal__title { font-size: 1.25rem; text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.ngal__title span { font: 600 .8125rem var(--font-body); padding: 2px 8px; background: var(--paper); color: var(--muted); }
.ngal__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ngal__item { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--line); }
.ngal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ngal__item::after { content: ""; position: absolute; inset: 0; background: rgba(20, 39, 92, 0); transition: background .3s; }
.ngal__item:hover img { transform: scale(1.06); }
.ngal__item:hover::after { background: rgba(20, 39, 92, .25); }
.ngal--mosaic .ngal__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ngal--mosaic .ngal__item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
/* в демо 12 фото: последнее растягиваем, чтобы мозаика закрылась без дыры */
.ngal--mosaic .ngal__item:last-child { grid-column: span 2; aspect-ratio: auto; }

.nshare { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nshare > span { margin-right: 6px; font: 500 .8125rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nshare__btn { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); background: var(--white); cursor: pointer;
  font: 700 .875rem var(--font-body); color: var(--navy); transition: background .2s, color .2s, border-color .2s; }
.nshare__btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.nshare__copy.is-done { background: #1F8A4C; border-color: #1F8A4C; color: var(--white); }
.nprevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 24px; background: var(--line); }
.nprevnext a { display: block; padding: 16px 18px; background: var(--white); font-weight: 600; line-height: 1.3; color: var(--ink); transition: background .2s; }
.nprevnext a:hover { background: var(--paper); color: var(--navy); }
.nprevnext span { display: block; margin-bottom: 4px; font: 500 .75rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.nprevnext__prev span::before { content: "← "; }
.nprevnext__next { text-align: right; }
.nprevnext__next span::after { content: " →"; }
.nrelated { margin-top: clamp(40px, 4vw, 64px); }
.nrelated__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }

/* 1. С колонкой */
.ns1 .pa-main { padding-top: clamp(20px, 2.5vw, 36px); }

/* 2. Обложка */
.ns2-cover { position: relative; min-height: clamp(420px, 62vh, 640px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); color: var(--white); }
.ns2-cover__img { position: absolute; inset: 0; margin: 0; }
.ns2-cover__img img { width: 100%; height: 100%; object-fit: cover; }
.ns2-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,15,20,.15) 20%, rgba(14,15,20,.88) 100%); }
.ns2-cover__text { position: relative; z-index: 1; padding-bottom: clamp(28px, 4vw, 52px); }
.ns2-cover__text .ns-title { color: var(--white); max-width: 22ch; margin: 0; }
.ns2-cover .nmeta { color: rgba(255,255,255,.75); }
.ns2-cover .nmeta__views::before { box-shadow: inset 0 0 0 2.5px var(--ink), inset 0 0 0 5px currentColor; }
.ns2-cover .crumbs { color: rgba(255,255,255,.8); }
.ns2-body { padding: clamp(32px, 4vw, 56px) 0 var(--section); }
.ns2-col { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.ns2-col .ns-text { font-size: 1.0625rem; line-height: 1.7; }

/* ---------- Просмотр фото ---------- */
.nlb { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(8, 10, 18, .94); }
.nlb[hidden] { display: none; }
.nlb__img { max-width: min(92vw, 1600px); max-height: 84vh; width: auto; height: auto; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.nlb__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%;
  background: var(--navy); color: var(--white); cursor: pointer; transition: background-color .25s ease, transform .25s ease; }
.nlb__close:hover, .nlb__close:focus-visible { background: var(--red); transform: rotate(90deg); outline: none; }
.nlb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; padding: 0 0 4px; border: 0;
  background: rgba(255,255,255,.1); color: var(--white); font: 400 36px/1 Arial, sans-serif; cursor: pointer; transition: background .2s; }
.nlb__nav:hover, .nlb__nav:focus-visible { background: var(--navy); outline: none; }
.nlb__prev { left: 16px; } .nlb__next { right: 16px; }
.nlb__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font: 500 .875rem var(--font-display); letter-spacing: .12em; color: rgba(255,255,255,.75); }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .na-grid, .nrelated__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nrow { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .na-lead { grid-template-columns: 1fr; }
  .na-lead__body { border-left: 0; border-top: 6px solid var(--yellow); }
  .na-grid, .nrelated__grid { grid-template-columns: 1fr; }
  .nrow { grid-template-columns: 1fr; gap: 12px; padding: 14px; }
  .nc-month__title { top: 57px; }
  /* хроника на телефоне: дата | текст | маленькое фото справа — список остаётся компактным */
  .nc-item { grid-template-columns: 44px minmax(0, 1fr) 92px; gap: 4px 12px; align-items: start; }
  .nc-date { grid-row: 1 / span 2; }
  .nc-date b { font-size: 1.75rem; }
  .nc-text { grid-column: 2; grid-row: 1; }
  .nc-text h3 { font-size: 1rem; }
  .nc-thumb { grid-column: 3; grid-row: 1 / span 2; }
  .nc-views { grid-column: 2; grid-row: 2; }
  .nc-tools { width: 100%; } .nc-tools label { flex: 1; } .nc-tools select { width: 100%; min-width: 0; }
  .ngal__grid, .ngal--mosaic .ngal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nprevnext { grid-template-columns: 1fr; }
  .nprevnext__next { text-align: left; }
  .nlb__nav { top: auto; bottom: 8px; transform: none; }
  .na-more { justify-content: center; }
  .na-more .btn { width: 100%; }
}

/* ===== Документы и Библиотека: копия Work/design/assets/docs-pages.css ===== */
/* =========================================================
   «Документы» (A, B) и «Библиотека» (C, D).
   Подключается после style.css и pages.css.
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dlead { max-width: 64ch; margin: 12px 0 0; color: rgba(255,255,255,.82); }
.dempty { margin: 20px 0 0; padding: 18px; background: var(--paper); color: var(--muted); text-align: center; }
[data-dscope] [hidden] { display: none !important; }

/* Значок типа файла */
.dicon { flex: none; display: inline-grid; place-items: center; width: 40px; height: 48px; position: relative; background: var(--navy);
  font: 600 .6875rem var(--font-display); letter-spacing: .06em; color: var(--white); clip-path: polygon(0 0, 70% 0, 100% 22%, 100% 100%, 0 100%); }
.dicon::after { content: ""; position: absolute; top: 0; right: 0; width: 30%; height: 22%; background: rgba(255,255,255,.35); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.dicon--pdf { background: var(--red); }
.dicon--doc, .dicon--docx { background: var(--navy); }
.dicon--djvu { background: var(--ink); }
.dicon--xls, .dicon--xlsx { background: #1F8A4C; }

/* Поиск */
.dsearch { position: relative; display: flex; align-items: center; gap: 12px; flex: 1 1 260px; }
.dsearch input { width: 100%; min-height: 46px; padding: 0 14px 0 42px; border: 1px solid var(--line); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236B7080' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") 14px 50% no-repeat;
  font: 500 .9375rem var(--font-body); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.dsearch input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(35, 66, 148, .15); }
.dsearch__count { position: absolute; right: 12px; font-size: .8125rem; color: var(--muted); pointer-events: none; }

/* ---------- A. Документы с колонкой ---------- */
.dtabs { display: flex; flex-wrap: wrap; gap: 0; margin: -4px 0 18px; border-bottom: 2px solid var(--ink); }
.dtab { min-height: 46px; padding: 0 18px; border: 0; background: none; cursor: pointer; font: 500 .9375rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  position: relative; transition: color .2s; }
.dtab b { margin-left: 4px; font-family: var(--font-body); font-size: .8125rem; }
.dtab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; background: var(--red); transform: scaleX(0); transition: transform .3s var(--ease); }
.dtab:hover { color: var(--ink); }
.dtab.is-on { color: var(--ink); }
.dtab.is-on::after { transform: scaleX(1); }
.dmain .dsearch { margin-bottom: 14px; }
.dyears { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; }
.dyears a { display: inline-grid; place-items: center; min-width: 52px; height: 34px; padding: 0 8px; border: 1px solid var(--line); font: 500 .875rem var(--font-display); color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.dyears a:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.dgroup { scroll-margin-top: 100px; }
.dgroup + .dgroup { margin-top: 22px; }
.dgroup__title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; font-size: 1.375rem; color: var(--navy); }
.dgroup__title span { font: 600 .75rem var(--font-body); padding: 2px 8px; background: var(--paper); color: var(--muted); }
.dlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dfile { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.dfile__link { flex: 1; display: flex; align-items: center; gap: 14px; padding: 10px 4px; min-width: 0; color: var(--ink); transition: background .2s; }
.dfile__link:hover { background: var(--paper); }
.dfile__link:hover .dfile__title { color: var(--navy); }
.dfile__text { display: grid; gap: 2px; min-width: 0; }
.dfile__title { font-weight: 600; line-height: 1.35; transition: color .2s; }
.dfile__meta { font-size: .8125rem; color: var(--muted); }
.dfile__dl { flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); color: var(--navy); transition: background .2s, color .2s, border-color .2s; }
.dfile__dl:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.dfile__dl svg { transition: transform .25s var(--ease); }
.dfile__dl:hover svg { transform: translateY(2px); }

/* ---------- B. Реестр ---------- */
.nl-head-doc { background: var(--navy-deep); color: var(--white); padding: clamp(28px, 4vw, 52px) 0; border-bottom: 5px solid var(--red); }
.nl-head-doc .page-title { color: var(--white); }
.nl-head-doc .crumbs { color: rgba(255,255,255,.75); }
.dreg-body { background: var(--paper); padding: clamp(24px, 3vw, 40px) 0 var(--section); }
.dfilters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 16px; }
.dfilters label { display: grid; gap: 4px; font: 500 .75rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dfilters select { min-height: 46px; min-width: 170px; padding: 0 10px; border: 1px solid var(--line); background: var(--white); font: 500 .9375rem var(--font-body); color: var(--ink); }
.dreg-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); }
.dreg { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.dreg th { position: sticky; top: 0; text-align: left; padding: 12px 14px; background: var(--ink); color: var(--white); font: 500 .75rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.dreg th button { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.dreg th button::after { content: " ↕"; opacity: .5; }
.dreg th button.is-asc::after { content: " ↑"; opacity: 1; color: var(--yellow); }
.dreg th button.is-desc::after { content: " ↓"; opacity: 1; color: var(--yellow); }
.dreg td { padding: 8px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--muted); }
.dreg tr:hover td { background: #FBFAF8; }
.dreg__name a { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.dreg__name a:hover span { color: var(--navy); }
.dreg__name .dicon { width: 30px; height: 36px; font-size: .5625rem; }
.dreg__year { font: 600 1rem var(--font-display); color: var(--navy) !important; }
.dreg__size, .dreg__sect, .dreg__type { white-space: nowrap; font-size: .8125rem; }
.dreg__dl { width: 56px; }

/* ---------- C. Книжная полка ---------- */
.dshelf-head { background: var(--ink); color: var(--white); padding: clamp(28px, 4vw, 52px) 0; border-bottom: 5px solid var(--yellow); }
.dshelf-head .page-title { color: var(--white); }
.dshelf-head .crumbs { color: rgba(255,255,255,.75); }
.dshelf-body { background: var(--paper); padding: clamp(24px, 3vw, 40px) 0 var(--section); }
.dfilters--shelf { align-items: center; }
.dchips { display: flex; flex-wrap: wrap; gap: 6px; }
.dchips button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font: 500 .875rem var(--font-display); letter-spacing: .08em; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.dchips button b { color: var(--muted); margin-left: 4px; }
.dchips button:hover { border-color: var(--navy); }
.dchips button.is-on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.dchips button.is-on b { color: var(--yellow); }
.dshelf { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 34px 26px; }
.dbook { --bg: var(--navy); --fg: var(--white); --acc: var(--yellow); }
.dbook--red { --bg: var(--red); --acc: var(--white); }
.dbook--ink { --bg: var(--ink); --acc: var(--red); }
.dbook--yellow { --bg: var(--flag-yellow); --fg: var(--ink); --acc: var(--navy); }
.dbook--deep { --bg: var(--navy-deep); --acc: var(--flag-yellow); }
.dbook__cover { position: relative; display: flex; flex-direction: column; aspect-ratio: 2 / 3; padding: 18px 16px 16px 24px; background: var(--bg); color: var(--fg); overflow: hidden;
  box-shadow: inset 8px 0 0 rgba(0,0,0,.22), inset 10px 0 0 rgba(255,255,255,.12), 0 10px 22px rgba(14,15,20,.16); transform-origin: left center; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.dbook__cover:hover { transform: perspective(900px) rotateY(-12deg); box-shadow: inset 8px 0 0 rgba(0,0,0,.22), inset 10px 0 0 rgba(255,255,255,.12), 14px 16px 28px rgba(14,15,20,.25); }
.dbook__mark { width: 22px; height: 22px; transform: rotate(45deg); border: 3px solid var(--acc); margin: 4px 0 14px 3px; flex: none; }
.dbook__title { font: 600 1.0625rem/1.15 var(--font-display); text-transform: uppercase; letter-spacing: .02em; overflow-wrap: break-word; hyphens: auto; }
/* длинные слова («Психологическая») — мельче, чтобы не рвались посередине */
.dbook--long .dbook__title { font-size: .875rem; }
.dbook__author { margin-top: 8px; font-size: .8125rem; opacity: .8; }
.dbook__ext { margin-top: auto; align-self: flex-start; padding: 2px 8px; border: 1px solid currentColor; font: 500 .6875rem var(--font-display); letter-spacing: .12em; opacity: .85; }
.dbook__meta { display: block; margin-top: 10px; font-size: .8125rem; color: var(--muted); }

/* ---------- D ---------- */
.dlist--lib { margin-top: 4px; }

/* ---------- Адаптив ---------- */
@media (max-width: 760px) {
  .dfilters label, .dfilters select { width: 100%; min-width: 0; }
  .dfilters label { flex: 1 1 45%; }
  .dreg thead { display: none; }
  .dreg, .dreg tbody, .dreg tr, .dreg td { display: block; width: auto; }
  .dreg tr { position: relative; padding: 12px 64px 12px 14px; border-bottom: 1px solid var(--line); }
  .dreg td { display: inline; padding: 0; border: 0; font-size: .8125rem; }
  .dreg td + td:not(.dreg__dl)::before { content: " · "; }
  .dreg td.dreg__name { display: block; margin-bottom: 6px; }
  .dreg td.dreg__name + td::before { content: ""; }
  .dreg__dl { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
  .dshelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .dbook__title { font-size: .9375rem; }
  .dbook--long .dbook__title { font-size: .75rem; }
  .dtab { flex: 1; padding: 0 8px; font-size: .8125rem; }
}

/* ===== Календарь и Публикации: копия Work/design/assets/calendar-pages.css ===== */
/* =========================================================
   «Календарь соревнований» (A, B) и «Публикации» (C, D).
   Подключается после style.css, pages.css и docs-pages.css.
   ========================================================= */
[data-cscope] [hidden] { display: none !important; }
.cev--sen { --g: var(--navy); } .cev--you { --g: var(--red); } .cev--jun { --g: #1F8A4C; }

/* Фильтры */
.cfilters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 4px 0 18px; }
.cswitch { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: .875rem; font-weight: 600; }
.cswitch input { width: 18px; height: 18px; accent-color: var(--navy); }

/* Ближайший старт */
.cnext { margin-bottom: 18px; }
.cnext:empty { display: none; }
.cnext__card { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; padding: 16px 18px; background: var(--navy-deep); color: var(--white); border-left: 6px solid var(--yellow); }
.cnext__label { grid-column: 1 / -1; font: 500 .75rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.cnext__count { font: 700 2.5rem/1 var(--font-display); color: var(--yellow); }
.cnext__count small { display: block; font: 500 .75rem var(--font-body); color: rgba(255,255,255,.7); }
.cnext__name { font: 600 1.125rem/1.25 var(--font-display); text-transform: uppercase; }
.cnext__place { margin-top: 4px; font-size: .875rem; color: rgba(255,255,255,.75); }

/* Список по месяцам */
.cmonth + .cmonth { margin-top: 22px; }
.cmonth__title { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font-size: 1.375rem; text-transform: uppercase; }
.cmonth__title span { color: var(--red); }
.clist { list-style: none; margin: 0; padding: 0; }
.cev { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); transition: opacity .2s; }
.cev__date { position: relative; display: grid; place-items: center; width: 58px; height: 58px; background: var(--paper); border-top: 4px solid var(--g); line-height: 1; }
.cev__date b { font: 700 1.5rem var(--font-display); color: var(--ink); }
.cev__date span { font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cev__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; }
.cev__group { padding: 1px 8px; background: var(--g); color: var(--white); font: 500 .6875rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.cev__status:empty { display: none; }
.cev__status { padding: 1px 8px; font: 600 .6875rem var(--font-body); }
.cev.is-past { opacity: .55; }
.cev.is-past .cev__status { background: var(--paper); color: var(--muted); }
.cev.is-now .cev__status { background: var(--red); color: var(--white); animation: cpulse 1.6s ease-in-out infinite; }
.cev.is-soon .cev__status { background: var(--yellow); color: var(--ink); }
@keyframes cpulse { 50% { opacity: .6; } }
.cev__name { margin: 0; font-size: 1.0625rem; line-height: 1.3; font-family: var(--font-body); font-weight: 700; }
.cev__place { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: .875rem; color: var(--muted); }
.cev__pin { width: 9px; height: 9px; transform: rotate(45deg); border: 2px solid var(--g); flex: none; }
.cev__team { display: grid; text-align: center; line-height: 1.1; min-width: 56px; }
.cev__team b { font: 700 1.25rem var(--font-display); color: var(--navy); }
.cev__team span { font-size: .6875rem; color: var(--muted); }
.carch__title { margin: 36px 0 10px; font-size: 1.25rem; text-transform: uppercase; }
.carch .dfile__link { padding: 8px 4px; }

/* ---------- B. Сезон на шкале ---------- */
.cseason { background: var(--navy-deep); color: var(--white); padding: clamp(28px, 4vw, 52px) 0 clamp(28px, 3vw, 40px); border-bottom: 5px solid var(--red); }
.cseason .page-title { color: var(--white); }
.cseason .crumbs { color: rgba(255,255,255,.75); }
.cseason__legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; font-size: .8125rem; color: rgba(255,255,255,.8); }
.cleg { display: inline-flex; align-items: center; gap: 6px; }
.cleg::before { content: ""; width: 18px; height: 10px; }
.cleg--nat::before { background: var(--yellow); }
.cleg--int::before { background: var(--white); }
.cleg--today::before { width: 2px; height: 14px; background: var(--red); }
.ctimeline-wrap { margin-top: 22px; overflow-x: auto; scrollbar-width: thin; }
.ctimeline { position: relative; min-width: 960px; padding-top: 26px; }
.cscale { position: absolute; left: 110px; right: 0; top: 0; height: 100%; pointer-events: none; }
.cscale span { position: absolute; top: 0; height: 100%; padding-left: 6px; border-left: 1px solid rgba(255,255,255,.12); font: 500 .75rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.clane { position: relative; display: grid; grid-template-columns: 110px 1fr; align-items: stretch; min-height: 64px; border-top: 1px solid rgba(255,255,255,.1); }
.clane__label { display: flex; align-items: center; font: 600 .875rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.clane--sen .clane__label { color: #8FB0FF; } .clane--you .clane__label { color: #FF8C8C; } .clane--jun .clane__label { color: #7FD6A3; }
.clane__track { position: relative; }
.cbar { position: absolute; top: 10px; height: 20px; padding: 0; border: 0; cursor: pointer; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.cbar:nth-child(even) { top: 34px; }
.cbar span { position: absolute; left: 0; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 0; }
.cbar--nat { background: var(--yellow); }
.cbar--int { background: rgba(255,255,255,.85); }
.cbar.is-past { opacity: .35; }
.cbar:hover, .cbar:focus-visible, .cbar.is-on { transform: scaleY(1.25); box-shadow: 0 0 0 2px var(--red); z-index: 2; outline: none; }
.ctoday { position: absolute; top: 18px; bottom: 0; width: 2px; background: var(--red); pointer-events: none; }
.ctoday::before { content: "Сегодня"; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); padding: 1px 6px; background: var(--red); font: 600 .625rem var(--font-body); white-space: nowrap; }
.cdetail { margin-top: 18px; min-height: 76px; padding: 14px 18px; background: rgba(255,255,255,.06); border-left: 4px solid var(--yellow); }
.cdetail p { margin: 0; color: rgba(255,255,255,.7); }
.cdetail h3 { margin: 4px 0; color: var(--white); font-size: 1.25rem; }
.cdetail__meta { font: 500 .75rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--yellow) !important; }
.cnext-body { background: var(--paper); padding: clamp(28px, 3vw, 48px) 0 var(--section); }
.cnext-body__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cnext-body__head .cfilters { margin: 0; }
.clist--cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.clist--cards .cev { grid-template-columns: 58px minmax(0, 1fr); align-items: start; padding: 14px; background: var(--white); border: 1px solid var(--line); }
.clist--cards .cev__team { grid-column: 1 / -1; display: none; }
.cnext-body .carch { background: var(--white); padding: 0 12px; }

/* ---------- C. Публикации с колонкой ---------- */
.cpubs { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.cpub__link { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px; border: 1px solid var(--line); color: var(--ink); transition: border-color .25s, box-shadow .25s; }
.cpub__link:hover { border-color: var(--navy); box-shadow: 0 10px 24px rgba(20,39,92,.1); }
.cpub__cover, .cshow__cover, .cfeat__cover { display: block; }
.cpub__cover .dbook__cover, .cshow__cover .dbook__cover { padding: 12px 10px 10px 16px; }
.cpub__cover .dbook__title { font-size: .8125rem; }
.cpub__cover--img img, .cshow__cover--img img, .cfeat__cover--img img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: inset 8px 0 0 rgba(0,0,0,.2), 0 10px 22px rgba(14,15,20,.18); }
.cpub__text { display: grid; gap: 6px; }
.cpub__title { font: 600 1.25rem/1.2 var(--font-display); text-transform: uppercase; }
.cpub__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.cpub__btn { display: inline-grid; place-items: center; min-height: 38px; padding: 0 16px; background: var(--red); color: var(--white); font: 500 .8125rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.cpub__btn--ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.cpub__link:hover .cpub__btn { background: var(--red-dark); }

/* ---------- D. Витрина ---------- */
.cshelf { background: var(--navy-deep); color: var(--white); padding: clamp(28px, 4vw, 52px) 0 var(--section); }
.cshelf .page-title { color: var(--white); }
.cshelf .crumbs { color: rgba(255,255,255,.75); }
.sprof-kicker { margin: 0 0 6px; font: 500 .8125rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.cfeat { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin: 28px 0 40px; }
.cfeat__cover { transition: transform .45s var(--ease); transform-origin: left center; }
.cfeat__cover:hover { transform: perspective(900px) rotateY(-10deg); }
.cfeat__title { color: var(--white); font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); text-transform: uppercase; line-height: 1.05; margin-bottom: 12px; }
.cfeat .dfile__meta { color: rgba(255,255,255,.6); margin: 12px 0 18px; }
.cshow { list-style: none; margin: 0; padding: 26px 0 0; border-top: 1px solid rgba(255,255,255,.15); display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px; }
.cshow__item a { display: grid; gap: 8px; color: var(--white); }
.cshow__item a:hover .cshow__title { color: var(--yellow); }
.cshow__title { font: 600 1rem/1.2 var(--font-display); text-transform: uppercase; transition: color .2s; }
.cshow .dfile__meta { color: rgba(255,255,255,.55); }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) { .clist--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .cev { grid-template-columns: 50px minmax(0, 1fr); }
  .cev__date { width: 50px; height: 54px; }
  .cev__team { display: none; }
  .clist--cards { grid-template-columns: 1fr; }
  .cpub__link { grid-template-columns: 90px minmax(0, 1fr); gap: 12px; }
  .cpub__title { font-size: 1.0625rem; }
  .cfeat { grid-template-columns: 1fr; }
  .cfeat__cover { max-width: 220px; }
  .cshow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

/* ===== Фото и видео: копия Work/design/assets/media-pages.css ===== */
/* =========================================================
   Фото и Видео: ленты альбомов (A, B), альбом (1, 2), видео (C, D).
   Подключается после style.css, pages.css и news-pages.css.
   ========================================================= */
.mhead-note { margin: 0; font: 500 .875rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.mcount { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; background: rgba(14, 15, 20, .82); color: var(--white); font: 500 .75rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.mcount::before { content: "▣ "; color: var(--yellow); }

/* ---------- A. Альбомы с колонкой ---------- */
.malb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.malb { background: var(--white); }
.malb__media { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; }
.malb__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.malb:hover .malb__media img { transform: scale(1.05); }
.malb__body { padding: 16px 18px 20px; }
.malb__title, .mvid__title { font-size: 1.125rem; line-height: 1.25; }
.malb__title a:hover, .mcol__title a:hover, .mvid__title a:hover { color: var(--navy); }

/* ---------- B. Коллажи ---------- */
.mcol-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.mcol { background: var(--white); }
.mcol__media { display: grid; grid-template-columns: 3fr 1fr; gap: 3px; background: var(--white); }
.mcol__main { display: block; overflow: hidden; aspect-ratio: 3 / 2; }
.mcol__main img, .mcol__minis img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mcol__minis { display: grid; grid-template-rows: repeat(3, 1fr); gap: 3px; position: relative; }
.mcol__minis img { min-height: 0; }
.mcol__more { position: absolute; left: 0; right: 0; bottom: 0; height: calc((100% - 6px) / 3); display: grid; place-items: center; background: rgba(20, 39, 92, .78); color: var(--white); font: 600 1.25rem var(--font-display); }
.mcol:hover .mcol__main img { transform: scale(1.04); }
.mcol__body { position: relative; padding: 16px 18px 20px; border-top: 4px solid var(--navy); }
.mcol__title { font-size: 1.25rem; line-height: 1.22; }
.mcol__count { display: none; }

/* ---------- Альбом ---------- */
.mslide { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 6px 0 18px; padding: 0 18px; border: 2px solid var(--navy); background: transparent; color: var(--navy); cursor: pointer;
  font: 500 .875rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; transition: background .2s, color .2s; }
.mslide:hover { background: var(--navy); color: var(--white); }
.mslide span { color: var(--red); transition: color .2s; }
.mslide:hover span { color: var(--yellow); }
.ngal--album { margin-top: 8px; }
.mmore { display: flex; margin: 18px auto 0; background: transparent; color: var(--navy); border-color: var(--navy); }
.mmore:hover { background: var(--navy); color: var(--white); }
.ngal__item[hidden] { display: none; }

.malb-head .nmeta { color: rgba(255,255,255,.7); }
.malb-head .nmeta__views::before { box-shadow: inset 0 0 0 2.5px var(--navy-deep), inset 0 0 0 5px currentColor; }
.malb-head .page-title { max-width: 24ch; }
.malb-head__intro { max-width: 70ch; margin: 14px 0 6px; color: rgba(255,255,255,.82); }
.malb-head .mslide { border-color: var(--yellow); color: var(--white); margin-bottom: 0; }
.malb-head .mslide:hover { background: var(--yellow); color: var(--ink); }
.malb-head .mslide span { color: var(--yellow); }
.malb-head .mslide:hover span { color: var(--red); }
.mjust-body { background: var(--ink); padding: 6px 0 var(--section); }
.mjust-body .ngal { margin: 0; }
/* ряды без обрезки: ширина плитки пропорциональна соотношению сторон фото */
.ngal--just .ngal__grid { display: flex; flex-wrap: wrap; gap: 6px; }
.ngal--just .ngal__item { flex: calc(var(--ar) * 100) 1 calc(var(--ar) * 220px); aspect-ratio: var(--ar); }
.ngal--just .ngal__grid::after { content: ""; flex: 10 1 0; }
.mjust-body .mmore { border-color: var(--yellow); color: var(--white); }
.mjust-body .mmore:hover { background: var(--yellow); color: var(--ink); }
.mfoot { margin-top: 32px; background: var(--white); padding-top: 4px; padding-bottom: 20px; }

/* ---------- C. Видео сеткой ---------- */
.mvid-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.mvid { background: var(--white); }
.mvid__media.nvideo__play, .mvid iframe { aspect-ratio: 16 / 9; width: 100%; display: block; border: 0; }
.mvid__media .nvideo__icon { width: 58px; height: 58px; }
.mvid__media .nvideo__icon::after { border-width: 10px; border-left-width: 16px; }
.mvid__body { padding: 14px 18px 18px; }

/* ---------- D. Плеер и плейлист ---------- */
.mplayer { background: var(--navy-deep); color: var(--white); padding: clamp(24px, 3vw, 44px) 0 var(--section); border-bottom: 5px solid var(--red); }
.mplayer .crumbs { color: rgba(255,255,255,.75); }
.mplayer .page-title { color: var(--white); }
.mplayer__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(18px, 2vw, 28px); margin-top: 24px; align-items: start; }
.mplayer__screen .nvideo__play, .mplayer__screen iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.mplayer__title { margin: 16px 0 4px; color: var(--white); font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem); line-height: 1.2; }
.mplayer__date { margin: 0; color: rgba(255,255,255,.65); font-size: .875rem; }
.mpl { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow-y: auto; scrollbar-width: thin; border-top: 1px solid rgba(255,255,255,.12); }
.mpl__item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; width: 100%; padding: 10px 8px; border: 0; border-bottom: 1px solid rgba(255,255,255,.12); border-left: 4px solid transparent;
  background: transparent; color: var(--white); text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.mpl__item:hover { background: rgba(255,255,255,.06); }
.mpl__item.is-on { background: rgba(255,255,255,.1); border-left-color: var(--yellow); }
.mpl__thumb { display: block; overflow: hidden; aspect-ratio: 16 / 9; }
.mpl__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mpl__text b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font: 600 .875rem/1.3 var(--font-body); }
.mpl__text time { display: block; margin-top: 4px; font-size: .75rem; color: rgba(255,255,255,.6); }
.mpl__item.is-on time { color: var(--yellow); }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .mplayer__grid { grid-template-columns: 1fr; }
  .mpl { max-height: 420px; }
}
@media (max-width: 760px) {
  .malb-grid, .mcol-grid, .mvid-grid { grid-template-columns: 1fr; }
  .ngal--just .ngal__item { flex-basis: calc(var(--ar) * 100px); }
  .mfoot { padding-left: 14px; padding-right: 14px; }
}

/* ===== Спортсмены: копия Work/design/assets/sportsmen-pages.css ===== */
/* =========================================================
   «Спортсмены»: список (A, B) и профиль (1, 2).
   Подключается после style.css, pages.css и docs-pages.css (поиск, вкладки, фильтры).
   ========================================================= */
.sfilters { display: grid; gap: 12px; margin-bottom: 18px; }
.sgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Карточка спортсмена */
/* карточки в ряду одной высоты: ссылка растягивается на всю ячейку сетки */
.scard { display: flex; }
.scard__link { display: flex; flex-direction: column; width: 100%; background: var(--white); border: 1px solid var(--line); color: var(--ink); transition: border-color .25s, box-shadow .25s; }
.scard__link:hover { border-color: var(--navy); box-shadow: 0 10px 24px rgba(20, 39, 92, .12); }
.scard__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.scard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.scard__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--flag-blue) 0 33.3%, var(--flag-yellow) 33.3% 66.6%, var(--flag-red) 66.6%); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.scard__link:hover .scard__media img { transform: scale(1.05); }
.scard__link:hover .scard__media::after { transform: scaleX(1); }
.scard__body { flex: 1; display: grid; align-content: start; gap: 4px; padding: 12px 14px 14px; }
.scard__name { font-size: 1rem; line-height: 1.25; }
.scard__name b, .stile__name b, .sleg__name b { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.scard__stats { font-size: .8125rem; color: var(--muted); }
.scard__rank { font-size: .8125rem; color: var(--navy); font-weight: 600; }
.scard__best { font-size: .8125rem; color: var(--muted); line-height: 1.35; }
.smedal { position: absolute; top: 10px; left: 10px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F3C79A, #B8743A 70%); color: var(--white); font: 700 .75rem var(--font-display); letter-spacing: .04em; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.steam-title { margin: 28px 0 10px; font-size: 1.125rem; text-transform: uppercase; }
.steam-docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steam-docs a { display: flex; align-items: center; gap: 14px; padding: 10px 4px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.steam-docs a:hover { background: var(--paper); color: var(--navy); }

/* ---------- B. Зал славы ---------- */
.shall { background: var(--navy-deep); color: var(--white); padding: clamp(28px, 4vw, 52px) 0 clamp(36px, 4vw, 56px); position: relative; overflow: hidden; }
.shall::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; transform: rotate(45deg); border: 2px solid rgba(255, 210, 0, .2); }
.shall .page-title { color: var(--white); }
.shall .crumbs { color: rgba(255,255,255,.75); }
.shall__sub { margin: 32px 0 16px; font-size: 1.25rem; text-transform: uppercase; color: var(--yellow); display: flex; align-items: center; gap: 14px; }
.shall__sub::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.2); }
.slegends { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
.sleg__link { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--white); transition: background .25s, border-color .25s; height: 100%; }
.sleg__link:hover { background: rgba(255,255,255,.12); border-color: var(--yellow); }
.sleg__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.sleg__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25); transition: filter .3s; }
.sleg__link:hover .sleg__media img { filter: none; }
.sleg__media .smedal { top: auto; bottom: 6px; left: 6px; width: 32px; height: 32px; font-size: .625rem; }
.sleg__body { display: grid; gap: 4px; }
.sleg__name { font-size: .9375rem; line-height: 1.25; }
.sleg__rank { font-size: .75rem; color: var(--yellow); }
.sleg__best { font-size: .8125rem; color: rgba(255,255,255,.78); line-height: 1.35; }
.spros { background: var(--paper); padding: clamp(28px, 3vw, 48px) 0 var(--section); }
.spros__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 14px; }
.spros__head .section__title span { font: 600 .875rem var(--font-body); color: var(--muted); margin-left: 6px; }
.spros__head .dsearch { max-width: 360px; }
.sabc { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 10px; }
.sabc button { min-width: 34px; height: 34px; padding: 0 6px; border: 0; background: var(--white); cursor: pointer; font: 600 .875rem var(--font-display); color: var(--ink); transition: background .2s, color .2s; }
.sabc button:hover { background: var(--line); }
.sabc button.is-on { background: var(--red); color: var(--white); }
.spros .dchips { margin-bottom: 18px; }
.sgrid--dense { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.stile__link { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); color: var(--white); }
.stile__media, .stile__media img { display: block; width: 100%; height: 100%; }
.stile__media img { object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.stile__body { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 34px 10px 10px; background: linear-gradient(180deg, rgba(14,15,20,0), rgba(14,15,20,.9)); }
.stile__name { font-size: .875rem; line-height: 1.2; }
.stile__stats { font-size: .75rem; color: var(--yellow); max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.stile__link:hover img { transform: scale(1.06); opacity: .8; }
.stile__link:hover .stile__stats, .stile__link:focus-visible .stile__stats { max-height: 3em; }

/* ---------- Профиль: общее ---------- */
.sprof__kicker { margin: 0 0 6px; font: 500 .8125rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.sprof__h { margin: 32px 0 12px; font-size: 1.25rem; text-transform: uppercase; padding-top: 10px; border-top: 2px solid var(--ink); }
/* Кнопка «Все спортсмены / судьи» под блоком «Другие…» в профиле */
.sprof__all { margin: 20px 0 0; }
.sprof__all .btn { gap: .5em; background: transparent; color: var(--navy); border-color: var(--navy); font-variant-numeric: tabular-nums; }
.sprof__all .btn:hover, .sprof__all .btn:focus-visible { background: var(--navy); color: var(--white); }
@media (max-width: 560px) { .sprof__all .btn { width: 100%; justify-content: center; } }
.sfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.sfacts div { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sfacts dt { font: 500 .75rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sfacts dd { margin: 0; font-weight: 600; color: var(--ink); }
.sfacts--more { margin-top: 4px; }
.stitles { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stitles li { position: relative; padding: 10px 12px 10px 40px; background: var(--paper); font-weight: 600; line-height: 1.35; }
.stitles li::before { content: ""; position: absolute; left: 14px; top: 15px; width: 10px; height: 10px; transform: rotate(45deg); background: var(--yellow); box-shadow: 0 0 0 2px var(--navy); }
.srec { width: 100%; max-width: 520px; border-collapse: collapse; }
.srec th, .srec td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.srec thead th { font: 500 .75rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.srec tbody th { text-align: left; font-weight: 600; }
.srec td b { color: var(--navy); font-size: 1.0625rem; }

/* 1. С колонкой */
.sprof__top { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
.sprof__photo { margin: 0; position: relative; }
.sprof__photo img { width: 100%; height: auto; }
.sprof__photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--flag-blue) 0 33.3%, var(--flag-yellow) 33.3% 66.6%, var(--flag-red) 66.6%); }
.sprof__name { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); font-weight: 400; text-transform: uppercase; line-height: 1.02; margin-bottom: 12px; }
.sprof__name b { display: block; font-weight: 600; }

/* 2. Постер */
.sposter { background: var(--ink); color: var(--white); overflow: hidden; position: relative; }
.sposter::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, var(--navy-deep) 0 52%, transparent 52.1%), linear-gradient(90deg, var(--flag-blue) 0 33.3%, var(--flag-yellow) 33.3% 66.6%, var(--flag-red) 66.6%); opacity: .9; }
.sposter__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 24px; min-height: clamp(460px, 60vh, 620px); }
.sposter__text { padding: clamp(28px, 4vw, 56px) 0; align-self: center; }
.sposter .crumbs { color: rgba(255,255,255,.75); }
.sposter .sprof__kicker { color: var(--yellow); }
.sposter__name { margin: 0 0 24px; font-size: clamp(3rem, 1.6rem + 6vw, 6.5rem); line-height: .9; text-transform: uppercase; color: var(--white); }
.sposter__name span { display: block; font-size: .42em; line-height: 1.1; font-weight: 400; letter-spacing: .04em; color: rgba(255,255,255,.85); margin-bottom: 10px; }
.sstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 520px; border-top: 1px solid rgba(255,255,255,.25); }
.sstat { padding: 14px 10px 0 0; }
.sstat b { display: block; font: 700 clamp(2rem, 1.4rem + 2vw, 3rem)/1 var(--font-display); color: var(--yellow); font-variant-numeric: tabular-nums; }
.sstat span { font-size: .8125rem; color: rgba(255,255,255,.75); }
.sposter__photo { margin: 0; align-self: end; }
.sposter__photo img { display: block; width: 100%; max-height: 600px; object-fit: contain; object-position: bottom; filter: drop-shadow(0 20px 40px rgba(0,0,0,.45)); }
.sposter-body { background: var(--white); padding: clamp(16px, 2vw, 28px) 0 var(--section); }
.sposter-body__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .slegends { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sgrid--dense { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sgrid, .sgrid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sgrid--dense { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .slegends { grid-template-columns: 1fr; }
  .stile__stats { display: none; }
  .sprof__top, .sposter-body__grid, .sposter__grid { grid-template-columns: 1fr; }
  .sprof__photo { max-width: 260px; }
  .sfacts { grid-template-columns: 1fr; }
  .sposter__grid { min-height: 0; }
  .sposter__text { padding-bottom: 0; }
  .sposter__photo img { max-height: 380px; margin: 0 auto; }
  .sstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== Судьи и промоутеры: копия Work/design/assets/officials-pages.css ===== */
/* Судьи и промоутеры — дополнения к sportsmen-pages.css (профиль 1 и карточки спортсменов) */
.sfacts--one { grid-template-columns: 1fr; }
.ocard { margin: 0; max-width: 560px; }
.ocard img { width: 100%; height: auto; box-shadow: 0 10px 24px rgba(14,15,20,.15); }

.oproms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.oprom__link { display: grid; gap: 8px; height: 100%; padding: 16px; border: 1px solid var(--line); border-top: 4px solid var(--red); background: var(--white); color: var(--ink); transition: box-shadow .25s, border-color .25s; }
.oprom__link:hover { box-shadow: 0 10px 24px rgba(20,39,92,.1); border-color: var(--navy); border-top-color: var(--red); }
.oprom__logo { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--paper); overflow: hidden; }
/* Картинка целиком вписывается в рамку 16:9 — без обрезки логотипов и лиц.
   Селектор сильнее .pa-main img { height: auto }, иначе квадратная картинка выше рамки и срезается снизу. */
.oprom__logo { position: relative; }
.oproms .oprom__logo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.oprom__name { font: 600 1.25rem var(--font-display); text-transform: uppercase; }
.oprom__text { font-size: .875rem; color: var(--muted); line-height: 1.45; }
.ologo { margin: 6px 0 18px; max-width: 520px; }
.ologo img { width: 100%; height: auto; }
@media (max-width: 760px) { .oproms { grid-template-columns: 1fr; } }

/* ===== Школы: копия Work/design/assets/schools-pages.css ===== */
/* =========================================================
   «Школы»: A (с боковой колонкой), B («Найти секцию»).
   Подключается после style.css и pages.css.
   ========================================================= */
.sh2 { margin: 0 0 14px; font-size: 1.375rem; text-transform: uppercase; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.sh2 + * { margin-top: 0; }
.pa-main .sh2:not(:first-child) { margin-top: 36px; }
[data-stabs] [hidden], .sfind [hidden] { display: none !important; }

/* Карточки школ */
.sclubs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sclub { position: relative; display: flex; flex-direction: column; padding: 18px 18px 16px; border: 1px solid var(--line); border-top: 4px solid var(--navy); background: var(--white); transition: box-shadow .25s, border-color .25s; }
.sclub:hover { box-shadow: 0 10px 24px rgba(20,39,92,.1); border-color: var(--navy); }
.sclub__area { margin: 0 0 4px; font: 500 .75rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.sclub__name { margin: 0 0 12px; font-size: 1.125rem; line-height: 1.25; }
.sclub__label { margin: 0 0 4px; font-size: .75rem; color: var(--muted); }
.sclub__coaches { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.sclub__coaches li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-weight: 600; font-size: .9375rem; }
.sclub__coaches a { color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sclub__coaches a::before { content: "☎ "; color: var(--red); }
.sclub__coaches a:hover { color: var(--red); }
.sclub__map { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font: 500 .8125rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.sclub__map::before { content: ""; width: 10px; height: 10px; transform: rotate(45deg); border: 2px solid var(--red); }
.sclub__map:hover { color: var(--red); }

/* Вкладки регионов */
.stabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 16px; }
.dtab-s { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font: 500 .9375rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.dtab-s:hover { border-color: var(--navy); }
.dtab-s.is-on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.sregion h4 { margin: 1.2em 0 .5em; font-size: 1rem; text-transform: uppercase; color: var(--navy); }
.smedals { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 6px; }
.smedals li { position: relative; padding: 8px 12px 8px 36px; background: var(--paper); line-height: 1.4; }
.smedals li::before { content: ""; position: absolute; left: 13px; top: 14px; width: 9px; height: 9px; transform: rotate(45deg); background: var(--yellow); box-shadow: 0 0 0 2px var(--navy); }

/* ---------- B. Найти секцию ---------- */
.sfind { background: var(--navy-deep); color: var(--white); padding: clamp(28px, 4vw, 52px) 0 clamp(32px, 4vw, 56px); border-bottom: 5px solid var(--red); }
.sfind .page-title { color: var(--white); }
.sfind .crumbs { color: rgba(255,255,255,.75); }
.dlead-s { margin: 10px 0 24px; color: rgba(255,255,255,.8); }
.sfind__grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: stretch; }
.spicks { display: grid; gap: 6px; align-content: start; }
.spick { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.18); border-left: 4px solid transparent; background: rgba(255,255,255,.05); color: var(--white); text-align: left; cursor: pointer;
  font: 600 .9375rem/1.3 var(--font-body); transition: background .2s, border-color .2s; }
.spick small { font: 500 .6875rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.spick:hover { background: rgba(255,255,255,.1); }
.spick.is-on { background: var(--white); color: var(--ink); border-left-color: var(--red); }
.spick.is-on small { color: var(--red); }
.sfind__card { background: var(--white); color: var(--ink); padding: 20px; }
.sdetail__name { margin: 0 0 16px; font-size: 1.375rem; line-height: 1.2; text-transform: uppercase; }
.scall { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.scall span { font-weight: 700; }
.scall .btn { justify-self: start; font-variant-numeric: tabular-nums; }
.sdetail__route { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.sdetail__route:hover { color: var(--red); }
.sfind__map { min-height: 320px; background: rgba(255,255,255,.08); }
.sfind__map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

.sregions { background: var(--paper); padding: clamp(32px, 4vw, 56px) 0 var(--section); }
.stiles-r { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; align-items: start; }
.stile-r { background: var(--white); border: 1px solid var(--line); }
.stile-r summary { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; align-items: center; padding: 18px 56px 18px 20px; cursor: pointer; list-style: none; }
.stile-r summary::-webkit-details-marker { display: none; }
.stile-r__num { grid-row: span 2; font: 700 clamp(2.25rem, 1.6rem + 2vw, 3.25rem)/1 var(--font-display); color: var(--navy); }
.stile-r__name { order: -1; font: 600 1.25rem var(--font-display); text-transform: uppercase; }
.stile-r__fact { font-size: .875rem; color: var(--muted); }
.stile-r__more { position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; transform: translateY(-50%); background: var(--navy); font-size: 0; transition: background .2s, transform .3s var(--ease); }
.stile-r__more::before, .stile-r__more::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--white); transform: translate(-50%, -50%); }
.stile-r__more::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.stile-r[open] .stile-r__more { background: var(--red); }
.stile-r[open] .stile-r__more::after { transform: translate(-50%, -50%) rotate(0); }
.stile-r summary:hover .stile-r__more { background: var(--red); }
.stile-r .prose { padding: 0 20px 18px; border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .sfind__grid { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
  .sfind__map { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .sclubs, .stiles-r, .sfind__grid { grid-template-columns: 1fr; }
  .spicks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scall .btn { justify-self: stretch; }
}

/* ===== Поиск: копия Work/design/assets/search-pages.css ===== */
/* =========================================================
   Поиск по сайту: A (страница результатов), B (мгновенный поиск).
   Подключается после style.css и pages.css.
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[data-results] [hidden] { display: none !important; }

.qform { display: flex; max-width: 640px; margin-top: 18px; }
.qform input { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px 0 46px; border: 0; font: 500 1.0625rem var(--font-body); color: var(--ink);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7080' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") 15px 50% no-repeat; }
.qform input:focus { outline: none; box-shadow: inset 0 0 0 3px var(--yellow); }
.qform button { min-width: 120px; border: 0; background: var(--red); color: var(--white); cursor: pointer; font: 500 1rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; transition: background .2s; }
.qform button:hover { background: var(--red-dark); }

.qsum { margin: 0 0 12px; color: var(--muted); }
.qsum b { color: var(--ink); }
.qtabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.qtabs:empty { display: none; }
.qtabs button { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font: 500 .875rem var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.qtabs button b { margin-left: 4px; font-family: var(--font-body); color: var(--muted); }
.qtabs button:hover { border-color: var(--navy); }
.qtabs button.is-on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.qtabs button.is-on b { color: var(--yellow); }

.qlist, .qcol ol { list-style: none; margin: 0; padding: 0; }
.qrow a { display: flex; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--ink); transition: background .2s; }
.qrow a:hover { background: var(--paper); }
.qrow img { flex: none; width: 56px; height: 70px; object-fit: cover; }
.qrow__body { display: grid; gap: 4px; min-width: 0; }
.qrow__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .75rem; color: var(--muted); }
.qrow__title { font-weight: 700; line-height: 1.3; }
.qrow a:hover .qrow__title { color: var(--navy); }
.qrow__text { font-size: .875rem; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qrow mark { background: #FFF1A6; color: inherit; padding: 0 1px; }
.qbadge { padding: 1px 7px; background: var(--navy); color: var(--white); font: 500 .625rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.qbadge--pro { background: var(--red); } .qbadge--video { background: var(--ink); } .qbadge--photo { background: var(--flag-yellow); color: var(--ink); }
.qbadge--doc { background: #1F8A4C; } .qbadge--athlete { background: var(--navy-deep); } .qbadge--page { background: var(--muted); }
.qmore { display: block; margin: 18px auto 0; min-height: 44px; padding: 0 24px; border: 2px solid var(--navy); background: transparent; color: var(--navy); cursor: pointer; font: 500 .875rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; transition: background .2s, color .2s; }
.qmore:hover { background: var(--navy); color: var(--white); }
.qempty { padding: 18px; background: var(--paper); color: var(--muted); }

/* ---------- B ---------- */
.qhero { background: var(--navy-deep); color: var(--white); padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); border-bottom: 5px solid var(--red); }
.qhero .page-title { color: var(--white); }
.qhero .crumbs { color: rgba(255,255,255,.75); }
.qform--big { max-width: 820px; }
.qform--big input { min-height: 64px; font-size: 1.25rem; }
.qhints { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 0; font-size: .875rem; color: rgba(255,255,255,.7); }
.qhints button { padding: 4px 12px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: var(--white); cursor: pointer; font: 500 .8125rem var(--font-body); transition: background .2s, border-color .2s, color .2s; }
.qhints button:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.qcols-body { background: var(--paper); padding: clamp(24px, 3vw, 40px) 0 var(--section); min-height: 280px; }
.qcols { columns: 3 320px; column-gap: 18px; }
.qcol { break-inside: avoid; margin-bottom: 18px; padding: 4px 16px 14px; background: var(--white); border-top: 4px solid var(--navy); }
.qcol h3 { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 4px; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; }
.qcol h3 span { font: 600 .75rem var(--font-body); color: var(--muted); }
.qcol--athlete { border-top-color: var(--red); } .qcol--doc { border-top-color: #1F8A4C; }
.qcol .qrow a { padding: 10px 0; }
.qcol .qrow__meta .qbadge { display: none; }
.qcol__all { display: inline-block; margin-top: 10px; font-weight: 700; font-size: .875rem; color: var(--navy); }
.qcol__all:hover { color: var(--red); }

@media (max-width: 760px) {
  .qform button { min-width: 84px; }
  .qform--big input { min-height: 54px; font-size: 1.0625rem; }
}

/* ===== Карта сайта: копия Work/design/assets/sitemap-pages.css ===== */
/* HTML-карта сайта: A (дерево), B (плитки). Подключается после style.css и pages.css. */
.smap-n { display: inline-block; margin-left: 6px; padding: 0 7px; background: var(--paper); font-size: .75rem; font-weight: 600; color: var(--muted); }
.smap-h { margin: 34px 0 12px; font-size: 1.25rem; text-transform: uppercase; padding-top: 10px; border-top: 2px solid var(--ink); }

/* A. Дерево */
.smap-tree, .smap-tree ul { list-style: none; margin: 0; padding: 0; }
.smap-tree > li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.smap-tree__top { display: inline-flex; align-items: center; gap: 10px; font: 600 1.125rem var(--font-display); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.smap-tree__top::before { content: ""; width: 9px; height: 9px; transform: rotate(45deg); background: var(--red); }
.smap-tree__top:hover { color: var(--navy); }
.smap-tree ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; margin: 8px 0 0 19px; padding-left: 16px; border-left: 2px solid var(--line); }
.smap-tree ul a { color: var(--ink); font-weight: 500; }
.smap-tree ul a:hover { color: var(--red); }

/* Годы архива */
.smap-years { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.smap-year { display: grid; place-items: center; gap: 2px; padding: 10px 4px; border: 1px solid var(--line); background: var(--white); color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.smap-year b { font: 600 1.25rem var(--font-display); }
.smap-year span { font-size: .75rem; color: var(--muted); }
.smap-year:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.smap-year:hover span { color: var(--yellow); }

/* B. Плитки */
.smap-hero { background: var(--navy-deep); color: var(--white); padding: clamp(28px, 4vw, 52px) 0; border-bottom: 5px solid var(--red); }
.smap-hero .page-title { color: var(--white); }
.smap-hero .crumbs { color: rgba(255,255,255,.75); }
.smap-stat { margin: 0; color: rgba(255,255,255,.8); }
.smap-stat b { font: 700 2rem var(--font-display); color: var(--yellow); margin-right: 6px; }
.smap-body { background: var(--paper); padding: clamp(28px, 3vw, 48px) 0 var(--section); }
.smap-tiles { columns: 3 300px; column-gap: 16px; }
.smap-tile { break-inside: avoid; margin-bottom: 16px; padding: 4px 18px 16px; background: var(--white); border-top: 4px solid var(--navy); }
.smap-tile:nth-child(3n+2) { border-top-color: var(--red); }
.smap-tile:nth-child(3n) { border-top-color: var(--flag-yellow); }
.smap-tile h2 { margin: 12px 0 8px; font-size: 1.125rem; text-transform: uppercase; letter-spacing: .04em; }
.smap-tile h2 a { color: var(--ink); }
.smap-tile h2 a:hover { color: var(--navy); }
.smap-tile ul { list-style: none; margin: 0; padding: 0; }
.smap-tile li { padding: 7px 0; border-top: 1px solid var(--line); }
.smap-tile li a { color: var(--ink); font-weight: 500; }
.smap-tile li a:hover { color: var(--red); }
.smap-arch { margin-top: 20px; }
.smap-years--wide { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); margin-top: 14px; }
@media (max-width: 760px) { .smap-tree ul { grid-template-columns: 1fr; } }

/* ===== Страница 404: копия Work/design/assets/404-pages.css ===== */
/* =========================================================
   Страница 404: A «Нокдаун», B «Ринг». Подключается после style.css.
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Поиск */
.e4-search { display: flex; max-width: 520px; margin: 22px 0 0; }
.e4-search input { flex: 1; min-width: 0; min-height: 50px; padding: 0 16px; border: 2px solid var(--white); border-right: 0; font: 500 1rem var(--font-body); color: var(--ink); background: var(--white); }
.e4-search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--yellow); }
.e4-search button { min-width: 110px; border: 0; background: var(--red); color: var(--white); cursor: pointer; font: 500 .9375rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; transition: background .2s; }
.e4-search button:hover { background: var(--red-dark); }

/* ---------- A. Нокдаун ---------- */
.e4a { position: relative; overflow: hidden; background: var(--navy-deep); color: var(--white); padding: clamp(48px, 7vw, 110px) 0; border-bottom: 5px solid var(--red); }
.e4a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, var(--flag-blue) 0 33.3%, var(--flag-yellow) 33.3% 66.6%, var(--flag-red) 66.6%); }
.e4a__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.e4a__num { display: flex; align-items: center; justify-content: center; gap: .04em; font: 700 clamp(7rem, 4rem + 12vw, 15rem)/.85 var(--font-display); color: var(--white); }
.e4a__zero { display: inline-block; width: .62em; height: .62em; margin: 0 .08em; transform: rotate(45deg); border: .1em solid var(--yellow); position: relative; }
.e4a__zero::after { content: ""; position: absolute; inset: 22%; background: var(--red); }
.e4a__kicker { margin: 0 0 8px; font: 500 .875rem var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); }
.e4a__title { color: var(--white); font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); text-transform: uppercase; line-height: 1; }
.e4a__count { margin: 16px 0 0; font: 500 1.125rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.e4a__count b { display: inline-grid; place-items: center; min-width: 1.6em; margin-left: 6px; padding: 0 .2em; background: var(--yellow); color: var(--ink); font-size: 1.5em; }
.e4a__lead { max-width: 52ch; margin: 14px 0 0; color: rgba(255,255,255,.82); transition: opacity .6s; }
.e4a-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 22px; max-width: 560px; }
.e4a-link { display: grid; gap: 2px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.2); border-left: 4px solid var(--yellow); color: var(--white); transition: background .25s, border-color .25s; }
.e4a-link b { font: 600 1rem var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.e4a-link span { font-size: .8125rem; color: rgba(255,255,255,.65); }
.e4a-link:hover { background: rgba(255,255,255,.08); border-left-color: var(--red); }

/* ---------- B. Ринг ---------- */
.e4b { background: var(--paper); padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 96px); text-align: center; }
.e4b .e4-search { margin: 32px auto 0; }
.e4b .e4-search input { border-color: var(--navy); }
.e4b__kicker { margin: 0 0 6px; font: 500 .875rem var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.e4b__title { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); text-transform: uppercase; }
.e4b__lead { max-width: 56ch; margin: 12px auto 0; color: var(--muted); }
.e4b-ring { --s: min(520px, 86vw); position: relative; width: var(--s); height: var(--s); margin: 36px auto 0; }
.e4b-ring__mat { position: absolute; inset: 9%; display: grid; place-items: center; background: #2B4FA8; box-shadow: inset 0 0 0 10px #1F3D8A, 0 30px 60px rgba(20,39,92,.25); overflow: hidden; }
.e4b-ring__logo { position: absolute; width: 46%; height: 46%; transform: rotate(45deg); border: 3px solid rgba(255,255,255,.12); }
.e4b-ring__num { position: relative; font: 700 clamp(4rem, 2rem + 9vw, 8rem)/1 var(--font-display); color: var(--white); letter-spacing: .02em;
  background: linear-gradient(100deg, #fff 40%, rgba(255,255,255,.55) 50%, #fff 60%) 200% 0 / 300% 100% no-repeat; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: e4glint 7s ease-in-out infinite; }
@keyframes e4glint { 0%, 55% { background-position: 200% 0; } 100% { background-position: -100% 0; } }
.e4b-rope { position: absolute; inset: calc(9% - var(--o)); border: 4px solid var(--c); pointer-events: none; }
.e4b-rope--1 { --o: 0px; --c: var(--flag-blue); }
.e4b-rope--2 { --o: 9px; --c: var(--flag-yellow); }
.e4b-rope--3 { --o: 18px; --c: var(--flag-red); }
.e4b-corner { position: absolute; display: grid; place-items: center; width: 27%; height: 15%; min-height: 54px; padding: 4px; color: var(--white); z-index: 2; transition: transform .25s var(--ease), box-shadow .25s; }
.e4b-corner small { font: 500 .625rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.e4b-corner b { font: 600 clamp(.75rem, .6rem + .5vw, 1rem)/1.1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; }
.e4b-corner:hover, .e4b-corner:focus-visible { transform: scale(1.06); box-shadow: 0 10px 24px rgba(14,15,20,.25); }
.e4b-corner--red { left: 0; top: 0; background: var(--red); }
.e4b-corner--blue { right: 0; bottom: 0; background: var(--flag-blue); }
.e4b-corner--w1 { right: 0; top: 0; background: var(--white); color: var(--ink); border: 2px solid var(--line); }
.e4b-corner--w2 { left: 0; bottom: 0; background: var(--white); color: var(--ink); border: 2px solid var(--line); }

@media (max-width: 860px) {
  .e4a__grid { grid-template-columns: 1fr; text-align: left; }
  .e4a__num { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .e4a-links { grid-template-columns: 1fr; }
  .e4b-rope--2 { --o: 6px; } .e4b-rope--3 { --o: 12px; }
  .e4b-corner { width: 34%; }
}
@media (prefers-reduced-motion: reduce) { .e4b-ring__num { animation: none; background-position: 0 0; } }
