/*
  Единый файл стилей сайта «ЧУДО Шинник».
  Собран из fonts.css + актуальных правил прежней вёрстки + текущий дизайн.
  Один запрос вместо четырёх блокирующих отрисовку.
*/

/* ---------- Шрифты ---------- */

@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/bebasneue-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/bebasneue-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/raleway-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/raleway-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/raleway-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/raleway-700.woff2') format('woff2');
}

/* ---------- Наследие прежней вёрстки (только используемые правила) ---------- */

button{ font:inherit; }
.crest-link{
  display:flex;
  align-items:center;
  justify-content:center;
}
.crest{
  max-width:145px;
  max-height:124px;
  object-fit:contain;
  filter:drop-shadow(0 1px 2px #000);
}
.menu-toggle{ display:none; }
.banner-dots button.active{ background:white; }
.content-grid{
  width:min(1180px,96%);
  margin:0 auto 28px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 318px;
  gap:18px;
  align-items:start;
}
.content-panel,.side-panel{
  border:1px solid #fff;
  border-radius:12px;
  background:#ededed;
  padding:17px;
  box-shadow:3px 4px 14px #0007;
}
.content-panel{ min-height:260px; }
.panel-title{
  margin:0 0 14px;
  padding:0 0 8px;
  border-bottom:1px solid #aaa;
  font-size:18px;
  color:#182d4e;
}
.news-list{ display:grid; gap:13px; }
.news-card{
  display:grid;
  grid-template-columns:150px 1fr;
  gap:15px;
  padding:11px;
  background:#fff;
  border:1px solid #c9c9c9;
  border-radius:7px;
}
.news-photo{
  min-height:118px;
  background:linear-gradient(135deg,#355a91,#96abc6);
  display:grid;
  place-items:center;
  color:white;
  font-size:12px;
  text-align:center;
}
.news-card h3{
  margin:2px 0 8px;
  font-size:16px;
  color:#162e56;
}
.news-date{ font-size:11px; color:#777; }
.news-card p{
  font-size:12px;
  line-height:1.5;
  margin:0 0 8px;
  color:#444;
}
.news-more{
  display:block;
  text-align:right;
  color:#b00000;
  font-size:12px;
  font-weight:bold;
}
.site-footer{
  width:min(1180px,96%);
  margin:0 auto 18px;
  padding:12px 17px;
  display:flex;
  align-items:center;
  gap:14px;
  color:white;
  background:rgba(15,31,55,.78);
  border:1px solid #ffffff88;
  text-shadow:1px 1px 2px #000;
  font-size:12px;
}
.site-footer img{
  width:58px;
  height:42px;
  object-fit:contain;
}
.site-footer>a{
  margin-left:auto;
  color:white;
  font-weight:bold;
}
.page-heading{
  width:min(1180px,96%);
  margin:18px auto 0;
  padding:18px 23px;
  background:#ededed;
  border:1px solid white;
  border-radius:12px 12px 0 0;
  box-shadow:3px 4px 14px #0007;
}
.breadcrumbs{ font-size:11px; color:#555; }
.breadcrumbs a{ color:#174987; }
.page-heading h1{
  font-size:25px;
  color:#182d4e;
  margin:10px 0 0;
}
.page-copy{
  font-size:13px;
  line-height:1.65;
  color:#333;
}
.page-content{
  width:min(1180px,96%);
  margin:0 auto 30px;
  padding:22px;
  background:#ededed;
  border:1px solid white;
  border-top:0;
  border-radius:0 0 12px 12px;
  box-shadow:3px 4px 14px #0007;
  min-height:230px;
}
.simple-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}
.result-list{
  background:white;
  border:1px solid #bbb;
  border-radius:7px;
  overflow:hidden;
}
.result-row{
  display:grid;
  grid-template-columns:1fr 1fr 75px 1fr 1fr;
  gap:8px;
  align-items:center;
  padding:12px 14px;
  border-bottom:1px solid #ddd;
  font-size:11px;
}
.result-row:last-child{ border:0; }
.result-row.head{
  background:#d9e2f1;
  color:#263d61;
  font-weight:bold;
}
.score{
  text-align:center;
  font-size:14px;
  font-weight:bold;
}
.doc-list{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:9px;
}
.doc-item{
  background:white;
  border:1px solid #ccc;
  border-radius:5px;
  padding:13px;
  font-size:12px;
  font-weight:bold;
}
.doc-item:before{
  content:'PDF';
  color:#a00000;
  margin-right:12px;
}
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.contact-card{
  background:white;
  border:1px solid #ccc;
  border-radius:7px;
  padding:16px;
}
.contact-card h3{ margin:0 0 10px; color:#1a3764; }
.contact-card p{ font-size:12px; line-height:1.6; }
.step-list{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}
.step{
  background:white;
  border:1px solid #ccc;
  border-radius:7px;
  padding:16px;
}
.step b{ color:#a00000; }
.step h3{ font-size:14px; color:#1a3764; }
.step p{ font-size:12px; line-height:1.5; }
.team-box{
  background:#fff;
  border:1px solid #bbb;
  padding:14px;
  border-radius:6px;
}
.team-box h3{ margin:0 0 7px; color:#173967; }
.team-box p{ font-size:12px; }
@media(max-width:1100px){
  .masthead {
    grid-template-columns:140px 1fr 220px 220px;
    padding-left:2vw;
    padding-right:2vw;
    gap:10px;
}
  .crest { max-width:125px; }
  .content-grid { grid-template-columns:minmax(0,1fr) 270px; }
}
@media(max-width:760px){
  .masthead {
    height:auto;
    min-height:116px;
    grid-template-columns:90px 1fr 48px;
    padding:8px 12px;
}
  .crest { max-width:86px; max-height:95px; }
  .menu-toggle {
    display:block;
    width:100%;
    height:39px;
    border:1px solid #164980;
    background:linear-gradient(to top,#3b56a3,#83a2d7);
    color:white;
    text-align:left;
    padding-left:14px;
    font-size:13px;
    font-weight:bold;
    text-shadow:0 1px 3px #000;
}
  .content-grid { grid-template-columns:1fr; }
  .news-card { grid-template-columns:105px 1fr; }
  .news-photo { min-height:95px; }
  .site-footer { flex-wrap:wrap; }
  .site-footer>a { margin-left:0; }
  .page-heading h1 { font-size:21px; }
  .result-row { grid-template-columns:1fr 65px 1fr; }
  .result-row>*:nth-child(2),.result-row>*:nth-child(4) { display:none; }
  .doc-list,.contact-grid,.step-list,.simple-grid { grid-template-columns:1fr; }
}
@media(max-width:430px){
  .masthead { grid-template-columns:72px 1fr 40px; }
  .crest { max-width:68px; }
  .content-panel { padding:11px; }
  .news-card { grid-template-columns:1fr; }
  .news-photo { min-height:105px; }
}
.news-card img.news-photo{
  display:block;
  width:100%;
  height:118px;
  min-height:118px;
  aspect-ratio:4/3;
  object-fit:contain;
  background:#e3e8ef;
}
.article-image{
  display:block;
  max-width:100%;
  height:auto;
  max-height:70vh;
  object-fit:contain;
  margin:0 auto 18px;
}
.article-text{
  font-size:14px;
  line-height:1.75;
  color:#252525;
  overflow-wrap:anywhere;
}
.article-text p{ margin:0 0 1em; }
.doc-item{ display:block; line-height:1.45; }
.doc-item:before{ display:none; }
.doc-item:after{ content:none; }
.section-notice{
  margin:0 0 18px;
  padding:12px 14px;
  border-left:3px solid #3b56a3;
  background:#dce7f8;
  font-size:13px;
  line-height:1.6;
}
.section-link{
  display:inline-block;
  margin-top:5px;
  color:#174987;
  font-size:12px;
  font-weight:bold;
}
.step h3 a{ color:#1a3764; }
.achievement-item{
  padding:14px;
  background:#fff;
  border:1px solid #ccc;
  border-radius:7px;
}
.achievement-item h3{ margin:5px 0 8px; color:#162e56; }
.standings-table{ margin-bottom:22px; }
.standings-row,.standings-head{
  grid-template-columns:minmax(150px,2fr) repeat(4,minmax(28px,.4fr)) minmax(65px,.8fr) minmax(28px,.4fr);
  text-align:center;
}
.standings-row strong:first-child,.standings-head span:first-child{ text-align:left; }
.standings-head{
  background:#d9e2f1;
  color:#263d61;
  font-weight:bold;
}
@media(max-width:760px){
  .news-card img.news-photo { height:95px; min-height:95px; }
  .standings-row,.standings-head {
    grid-template-columns:minmax(105px,2fr) repeat(4,minmax(20px,.35fr)) minmax(52px,.75fr) minmax(22px,.35fr);
    gap:3px;
    padding:8px 6px;
    font-size:10px;
}
}
.staff-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(270px,1fr));
  gap:14px;
}
.staff-card{
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  gap:14px;
  align-items:start;
  padding:13px;
  background:#fff;
  border:1px solid #ccc;
  border-radius:7px;
}
.staff-card img{
  width:120px;
  height:150px;
  object-fit:contain;
  background:#eef1f5;
}
.staff-card h3{
  margin:2px 0 9px;
  color:#182d4e;
  font-size:15px;
}
.staff-card p{
  margin:0 0 7px;
  color:#444;
  font-size:12px;
  line-height:1.45;
}
.empty-section-message{
  padding:24px;
  text-align:center;
  font-size:16px;
}
@media(max-width:430px){
  .staff-grid { grid-template-columns:1fr; }
  .staff-card { grid-template-columns:90px minmax(0,1fr); }
  .staff-card img { width:90px; height:120px; }
}
.rich-text{
  font-size:15px;
  line-height:1.65;
  color:#333;
  margin:0 0 18px;
}
.rich-text h2{
  margin:18px 0 10px;
  color:#182d4e;
  font-size:20px;
}
.rich-text h3{
  margin:16px 0 8px;
  color:#182d4e;
  font-size:17px;
}
.rich-text ul,.rich-text ol{ margin:0 0 14px; padding-left:22px; }
.rich-text a{ color:#174987; }
.rich-text p{ margin:0 0 12px; }
.preview-banner{
  margin:0 0 18px;
  padding:12px 16px;
  border-left:4px solid #c58a00;
  background:#fff4d6;
  color:#6b4a00;
  font-weight:600;
  font-size:14px;
}
.muted{ color:#666; font-size:14px; }
.stub-note{
  padding:14px 16px;
  border-left:4px solid #3b56a3;
  background:#eef3fc;
  font-size:14px;
  line-height:1.6;
  border-radius:0 6px 6px 0;
}
.sveden-fields{ margin:0 0 18px; padding:0; }
.sveden-row{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  gap:12px;
  padding:9px 0;
  border-bottom:1px solid #ddd;
  font-size:14px;
}
.sveden-row dt{ color:#4a5a75; }
.sveden-row dd{ margin:0; color:#171717; }
.table-scroll{ overflow-x:auto; margin:0 0 18px; }
.sveden-table{
  border-collapse:collapse;
  width:100%;
  min-width:640px;
  background:#fff;
  font-size:13px;
}
.sveden-table th,.sveden-table td{
  border:1px solid #c9c9c9;
  padding:8px 10px;
  text-align:left;
  vertical-align:top;
}
.sveden-table th{ background:#e7edf7; color:#173967; }
@media(max-width:760px){
  .sveden-row { grid-template-columns:1fr; gap:2px; }
}
.banner-image.hidden{ display: none; }
.news-photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-image{
  display: block;
  max-width: 100%;
  max-height: 560px;
  margin: 0 auto 20px;
  object-fit: contain;
}
.filters{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  padding: 14px;
  margin-bottom: 15px;
  background: #fff;
  border: 1px solid #bbb;
}
.filters label{
  display: grid;
  gap: 5px;
  font-size: 12px;
}
.filters select,
.filters button{ min-height: 34px; padding: 5px 10px; }
.gallery-section{ margin: 0 0 24px; }
.gallery-section h2{ font-size: 17px; color: #182d4e; }
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 10px;
}
.gallery-grid a{
  display: grid;
  gap: 5px;
  padding: 7px;
  background: white;
  border: 1px solid #bbb;
  font-size: 11px;
}
.gallery-grid img{
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.video-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.video-grid iframe{
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid white;
  background: #111;
}
.article-text{
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.result-row small{ display: block; font-size: 10px; }

/*
  Оформление публичных страниц «ЧУДО Шинник».
  Визуальный ориентир — Академия ФК «Локомотив»: плоская вёрстка, бумажный фон,
  узкий плакатный шрифт, крупные поля. Цвета — фирменные синий и зелёный «Шинника».
*/

:root {
  --ink: #14171c;
  --ink-soft: #444b55;
  --muted: #7d838c;
  --paper: #f6f5f1;
  --paper-deep: #ecebe4;
  --line: #d9d8d0;
  --navy-950: #080e18;
  --navy-900: #0d1929;
  --navy-800: #13253d;
  --blue: #14357e;
  --green: #1f8a4c;
  --accent: #2b6cb0;
  --accent-dark: #1f4f82;
  --green-dark: #166b3b;
  --white: #fff;
  --max: 1920px;
  --masthead-h: 126px;
  --gutter: clamp(20px, 5vw, 75px);
  --container: min(calc(100% - 150px), var(--max));
  --display: 'Bebas Neue', 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --text: 'Raleway', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Скроллбары ---------- */

* { scrollbar-width: thin; scrollbar-color: #bababa #f2f2f2; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f2f2f2; border: 2px solid #fff; }
::-webkit-scrollbar-thumb { background: #bababa; border: 2px solid #fff; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 16px/1.7 var(--text);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

img { max-width: 100%; }

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 3px solid #4c8dff; outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--white);
  color: var(--navy-900);
  font-weight: 700;
}
.skip-link:focus { left: 0; }

h1, h2, h3, .panel-title { font-family: var(--display); font-weight: 700; }
h1 { text-transform: uppercase; }

.muted { color: var(--muted); }

/* ---------- Шапка ---------- */

.masthead {
  position: relative;
  z-index: 20;
  background: var(--navy-950);
  color: var(--white);
  text-shadow: none;
}
.masthead-utility {
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.masthead-utility-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  height: 36px;
  padding: 0 var(--gutter);
}
.utility-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font: 500 10.5px/1 var(--text);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.utility-links a {
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  white-space: nowrap;
}
.utility-links a:hover,
.utility-links a:focus-visible { color: var(--white); }
.a11y-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
}
.a11y-link::before { content: "◐"; font-size: 13px; }
.a11y-link:hover,
.a11y-link:focus-visible { color: var(--white); background: none; }

.masthead-main {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 112px;
  padding: 0 var(--gutter);
}
.crest-link { display: flex; align-items: center; flex: none; }
.masthead .crest {
  display: block;
  height: 96px;
  width: auto;
  max-width: fit-content;
  object-fit: contain;
}
.primary-nav {
  display: flex;
  align-items: stretch;
  gap: 30px;
  height: 112px;
  margin-left: auto;
}
.primary-nav > a,
.nav-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0;
  border: 0;
  background: none;
  font: 500 11px/1.35 var(--text);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .66);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease;
}
.primary-nav > a:hover,
.nav-trigger:hover,
.nav-trigger[aria-expanded="true"] { color: var(--white); }
.primary-nav > a.is-current,
.nav-trigger.is-current { color: var(--white); }
.primary-nav > a.is-current::after,
.nav-trigger.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
}
.nav-chevron {
  width: 7px;
  height: 7px;
  margin: 0 0 3px 10px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.nav-trigger[aria-expanded="true"] .nav-chevron {
  margin-bottom: -3px;
  transform: rotate(-135deg);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, .35);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.menu-toggle:hover { border-color: var(--white); }
.menu-icon {
  display: inline-block;
  width: 22px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  position: relative;
}
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  border-top: 2px solid currentColor;
}

/* Выпадающая панель раздела «Сведения» */
.sveden-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 30;
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(8, 14, 24, .18);
}
.sveden-mega[hidden] { display: none; }
.sveden-mega-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 2.6fr);
  gap: 56px;
  padding: 38px var(--gutter) 44px;
}
.mega-kicker {
  margin: 0 0 12px;
  font: 500 9.5px/1 var(--text);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.mega-title {
  margin: 0 0 18px;
  font: 700 33px/0.98 var(--display);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink);
}
.mega-all {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(43, 108, 176, .35);
  font: 600 11px/1 var(--text);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.mega-all:hover { color: var(--accent-dark); border-color: currentColor; }
.mega-list {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(5, auto);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px 48px;
  margin: 0;
  padding: 0;
}
.mega-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.mega-num {
  min-width: 17px;
  font: 700 12px/1 var(--display);
  letter-spacing: .08em;
  color: #b3b2a9;
}
.mega-list a {
  font: 500 13.5px/1.35 var(--text);
  color: var(--ink);
  text-decoration: none;
}
.mega-list a:hover,
.mega-list a:focus-visible { color: var(--accent); }
.mega-list li.is-current .mega-num { color: var(--green); }
.mega-list li.is-current a { color: var(--accent); font-weight: 600; }

/* ---------- Главный экран ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  min-height: max(560px, calc(100vw * 445 / 1280));
  max-height: 1100px;
  margin: 0;
  padding: 32px 0 64px;
  background:
    linear-gradient(90deg, rgba(6, 12, 22, .75) 0%, rgba(6, 12, 22, .62) 54%, rgba(6, 12, 22, .46) 100%),
    linear-gradient(0deg, rgba(6, 12, 22, .58) 0%, rgba(6, 12, 22, 0) 58%),
    url("images/hero-shinnik-2026.webp") center 45% / cover no-repeat,
    var(--navy-900);
  color: var(--white);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  width: var(--container);
  margin: 0 auto;
}
.hero-copy { min-width: 0; }
.hero-kicker {
  margin: 0 0 22px;
  font: 400 13px/1.4 var(--text);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #b9c7d8;
}
.hero h1 {
  margin: 0 0 34px;
  max-width: 18ch;
  font-size: clamp(46px, 7.4vw, 104px);
  line-height: .94;
  font-weight: 600;
  letter-spacing: .005em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 0 30px;
  border: 0;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  background: linear-gradient(100deg, #7ea9d6 0%, #3d5f86 46%, #191d22 100%);
  color: var(--white);
  font: 700 18px/1 var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .2s ease;
}
.button:hover { filter: brightness(1.12); color: var(--white); }
.button-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .55);
}
.button-ghost:hover { background: rgba(255, 255, 255, .12); filter: none; }

/* ---------- Контентные блоки ---------- */

.content-grid {
  display: block;
  width: var(--container);
  margin: 88px auto 104px;
}
.content-panel { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.panel-title {
  margin: 0 0 36px;
  padding: 0;
  border: 0;
  font-size: clamp(32px, 3.8vw, 54px);
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
}
.panel-title span { color: var(--accent); }

.news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; align-items: stretch; }
.news-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}
.news-media {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
}
.news-card .news-media img,
.news-card .news-media .news-photo {
  display: block;
  width: 100%;
  height: 210px;
  min-height: 0;
  object-fit: cover;
  background: var(--paper-deep);
  color: var(--muted);
  font: 400 15px/1.4 var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: transform .35s ease;
}
.news-media div.news-photo { display: grid; place-items: center; }
.news-card:hover .news-media img { transform: scale(1.05); }
.news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
}
.news-date {
  margin: 0;
  font: 400 12px/1 var(--text);
  letter-spacing: .18em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.news-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
}
.news-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.news-more {
  margin-top: auto;
  padding-top: 14px;
  align-self: flex-start;
  font: 500 13px/1 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.news-more:hover { color: var(--accent-dark); }

/* ---------- Фильтр «Период» ---------- */

.period { position: relative; width: min(320px, 100%); margin: 0 0 44px; }
.period-field {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font: 400 20px/1.2 var(--text);
  text-align: left;
  cursor: pointer;
}
.period-value { flex: 1; font-size: 15px; color: var(--ink-soft); }
.period-icon { flex: none; width: 24px; height: 24px; }
.period-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: 340px;
  max-width: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
}
.period-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.period-title {
  padding: 0;
  border: 0;
  background: none;
  font: 700 20px/1 var(--display);
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
}
.period-title:hover { color: var(--accent-dark); }
.period-nav {
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.period-nav:hover { color: var(--accent); }
.period-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 8px; }
.period-weekdays[hidden] { display: none; }
.period-weekdays span {
  text-align: center;
  font: 500 11px/1 var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.period-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.period-day {
  aspect-ratio: 1;
  border: 0;
  background: none;
  color: var(--ink);
  font: 400 14px/1 var(--text);
  cursor: pointer;
}
.period-day:hover { background: var(--paper-deep); }
.period-day.is-outside { color: var(--muted); opacity: .55; }
.period-day.is-today { font-weight: 700; color: var(--accent); }
.period-grid.is-months { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.period-grid.is-years { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.period-grid.is-months .period-day,
.period-grid.is-years .period-day {
  aspect-ratio: auto;
  padding: 14px 4px;
  font: 700 14px/1.2 var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
}
.period-grid.is-months .period-day.is-selected,
.period-grid.is-years .period-day.is-selected {
  background: none;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.period-day.is-selected { background: var(--accent); color: #fff; font-weight: 700; }
.period-reset {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font: 700 14px/1 var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.period-reset:hover { background: var(--accent-dark); }

.filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 32px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--paper-deep);
  font-size: 15px;
  color: var(--ink-soft);
}
.filter-summary a {
  flex: none;
  font: 500 13px/1 var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.filter-summary a:hover { color: var(--accent-dark); }

/* ---------- Внутренние страницы ---------- */

.page-heading {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  margin: 0;
  min-height: max(560px, calc(100vw * 445 / 1280));
  max-height: 1100px;
  padding: 32px 0 64px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(6, 12, 22, .75) 0%, rgba(6, 12, 22, .62) 54%, rgba(6, 12, 22, .46) 100%),
    linear-gradient(0deg, rgba(6, 12, 22, .58) 0%, rgba(6, 12, 22, 0) 58%),
    url("images/hero-shinnik-2026.webp") center 45% / cover no-repeat,
    var(--navy-900);
  box-shadow: none;
  color: var(--white);
}
.page-heading-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: start;
  width: var(--container);
  margin: 0 auto;
}
.page-heading-main { min-width: 0; }
.breadcrumbs {
  display: block;
  margin: 0 0 26px;
  font: 400 12px/1.4 var(--text);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8fa0b5;
}
.breadcrumbs a { color: #b9c6d6; }
.breadcrumbs a:hover { color: var(--white); }
.page-heading h1 {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(30px, 4.2vw, 64px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: .005em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--white);
}
.page-copy {
  margin: 26px 0 0;
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.65;
  color: #aebac9;
}

.page-heading--sveden h1 {
  font-weight: 700;
}
.page-heading--sveden .page-heading-inner { grid-template-columns: minmax(0, 1fr); }
.go-back {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 44px;
  font: 400 16px/1.4 var(--text);
  color: var(--white);
  white-space: nowrap;
}
.go-back-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  transition: background-color .2s ease, border-color .2s ease;
}
.go-back-icon svg { width: 18px; height: 18px; }
.go-back:hover .go-back-icon {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .85);
}

.page-content {
  width: var(--container);
  margin: 0 auto;
  padding: 72px 0 104px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.page-content > p, .rich-text { max-width: 78ch; }
.rich-text { font-size: 16px; line-height: 1.75; color: var(--ink-soft); overflow-wrap: anywhere; }
.rich-text h2, .rich-text h3 { color: var(--ink); text-transform: uppercase; }
.rich-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.rich-text img { height: auto; }
.rich-text table { display: block; max-width: 100%; overflow-x: auto; }

.preview-banner, .stub-note {
  margin: 0 0 32px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--paper-deep);
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- Каталог разделов сведений ---------- */

.sveden-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}
.sveden-grid .simple-card {
  min-height: 0;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.sveden-grid .simple-card h2 {
  margin: 0;
  font: 500 19px/1.3 var(--display);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.sveden-grid .simple-card a { color: var(--ink); }
.sveden-grid .simple-card a:hover { color: var(--accent); }

/* ---------- Сведения о сотрудниках ---------- */

.staff-portrait-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin: 0 0 8px;
}
.staff-portrait-card {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--navy-900);
  color: var(--white);
  aspect-ratio: 3 / 4;
}
.staff-portrait-card:hover .staff-portrait img { transform: scale(1.03); }
.staff-portrait { position: absolute; inset: 0; height: auto; background: var(--navy-800); }
.staff-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 12, 22, 0) 40%, rgba(6, 12, 22, .66) 64%, rgba(6, 12, 22, .97) 94%);
}
.staff-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .25s ease;
}
.staff-portrait img[hidden] { display: none; }
.staff-photo-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  color: #93a3b6;
  font: 400 13px/1.4 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
}
.staff-photo-fallback[hidden] { display: none; }
.staff-portrait-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 22px;
}
.staff-portrait-caption h2 {
  margin: 0;
  font: 700 clamp(20px, 1.45vw, 26px)/1.05 var(--display);
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--white);
}
.staff-portrait-caption p {
  margin: 0 0 8px;
  font: 400 13px/1.4 var(--text);
  color: #d5dde7;
}

/* Карточка руководителя: под портретом остаются контакты и разметка. */
.staff-portrait-card--detail {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  height: 100%;
}
.staff-portrait-card--detail .staff-portrait-media { display: block; }
.staff-portrait-card--detail .staff-portrait {
  position: relative;
  inset: auto;
  aspect-ratio: 3 / 4;
}
.staff-portrait-card--detail .staff-portrait-caption {
  position: static;
  flex: 1 1 auto;
  padding: 18px 22px 22px;
  background: var(--navy-900);
}
.staff-portrait-card--detail .staff-portrait-caption h2 { margin: 0 0 10px; }
.staff-portrait-card--detail .staff-portrait-caption h2 a { color: inherit; }
.staff-portrait-card--detail .staff-portrait-caption h2 a:hover { color: #cfe0f7; }
.staff-portrait-details {
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font: 400 12px/1.5 var(--text);
  color: #93a3b6;
  overflow-wrap: anywhere;
}
.staff-portrait-details span { color: #d5dde7; }

/* ---------- Страница сотрудника ---------- */

.person-hero { background: var(--navy-900); color: var(--white); }
.person-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 400px);
  gap: 64px;
  align-items: end;
  width: var(--container);
  margin: 0 auto;
  padding: 64px 0 0;
}
.person-hero-text { padding-bottom: 64px; min-width: 0; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 44px;
  font: 400 12px/1 var(--text);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #a7b6c7;
}
.back-link:hover { color: var(--white); }
.back-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  font-size: 15px;
}
.person-hero h1 {
  margin: 0;
  font-size: clamp(40px, 5.6vw, 82px);
  line-height: .95;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
}
.person-post {
  margin: 22px 0 0;
  font: 400 14px/1.4 var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9db0c6;
}
.person-photo {
  position: relative;
  align-self: end;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  background: var(--navy-800);
  overflow: hidden;
}
.person-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.person-photo img[hidden] { display: none; }

.person-fields { margin: 0; max-width: 76ch; }
.person-field { padding: 0 0 28px; }
.person-field dt {
  margin: 0 0 6px;
  font: 500 13px/1.3 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.person-field dd { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink-soft); overflow-wrap: anywhere; }

/* ---------- Типы данных раздела «Сведения» ---------- */

.sveden-body { min-width: 0; }
.sveden-body .panel-title { margin: 0 0 28px; font-size: clamp(24px, 2.6vw, 34px); }
.sveden-fields { margin: 0 0 56px; }
.sveden-row {
  display: block;
  padding: 0 0 26px;
  border: 0;
  font-size: 16px;
}
.sveden-row dt {
  margin: 0 0 6px;
  font: 500 13px/1.3 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.sveden-row dd {
  margin: 0;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.table-scroll { max-width: 100%; overflow-x: auto; margin: 0 0 48px; }
.table-scroll::-webkit-scrollbar { height: 2px; }
.table-scroll::-webkit-scrollbar-track { background: #bdc2cb; border: 0; }
.table-scroll::-webkit-scrollbar-thumb { background: #3e414a; border: 0; }
.sveden-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.sveden-table th {
  padding: 14px 16px;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: 500 12px/1.3 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sveden-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}

.doc-list { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0 0 48px; }
.doc-item {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 0;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font: 500 15px/1.35 var(--display);
  letter-spacing: .05em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.doc-item:hover { color: var(--accent-dark); }
div.doc-item {
  color: var(--muted);
  font: 300 15px/1.5 var(--text);
  letter-spacing: 0;
  text-transform: none;
}
.doc-type {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--accent);
  font: 500 12px/1 var(--display);
  letter-spacing: .08em;
}

/* ---------- Фотогалерея и видео ---------- */

.gallery-section { margin: 0 0 56px; }
.gallery-section h2 {
  margin: 0 0 22px;
  font-size: clamp(22px, 2.2vw, 30px);
  text-transform: uppercase;
  color: var(--ink);
}
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gallery-grid a { display: block; color: var(--ink-soft); font-size: 13px; }
.gallery-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
  overflow: hidden;
}
.gallery-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-grid img[hidden] { display: none; }
.gallery-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font: 400 12px/1.4 var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.gallery-placeholder[hidden] { display: none; }
.gallery-grid a:hover img { opacity: .9; }
.gallery-grid a > span:last-child { display: block; padding-top: 8px; overflow-wrap: anywhere; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.video-grid iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--paper-deep); }

/* ---------- Новости и статьи ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0 0 40px;
  padding: 0;
  font: 400 13px/1.4 var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.filters a { color: var(--muted); }
.filters a:hover { color: var(--accent); }
.news-article {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}
.news-article--text { grid-template-columns: minmax(0, 1fr); max-width: 78ch; }
.article-media { min-width: 0; }
.article-image {
  display: block;
  width: 100%;
  max-height: none;
  margin: 0;
  object-fit: cover;
  background: var(--paper-deep);
}
.article-text { max-width: 78ch; font-size: 16px; line-height: 1.75; color: var(--ink-soft); overflow-wrap: anywhere; }
.article-text img { height: auto; }
.article-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Родителям и контакты ---------- */

.step-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 0; }
.step, .contact-card {
  padding: 0;
  border: 0;
  border-top: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
}
.step b {
  display: block;
  margin: 16px 0 10px;
  font: 500 12px/1 var(--display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.step h3, .contact-card h3 {
  margin: 16px 0 12px;
  font-size: 22px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink);
}
.step h3 a { color: var(--ink); }
.step h3 a:hover { color: var(--accent); }
.step p, .contact-card p { margin: 0 0 14px; font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.section-link {
  font: 500 13px/1 var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.contact-card a { color: var(--accent); }
.contact-card a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Подвал ---------- */

.site-footer {
  width: 100%;
  margin: 0;
  padding: 72px var(--gutter);
  display: block;
  border: 0;
  background: var(--navy-950);
  color: #c3cedb;
  font-size: 14px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr 1fr;
  gap: 48px;
  width: var(--container);
  margin: 0 auto;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 320px; }
.footer-brand img { width: 84px; height: 93px; object-fit: contain; }
.footer-brand span {
  font: 500 17px/1.35 var(--display);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-group h2 {
  margin: 0 0 12px;
  font: 500 13px/1 var(--display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-inner a { color: #aebccb; font-size: 14px; line-height: 1.45; }
.footer-inner a:hover { color: var(--white); }
.footer-partner img { max-width: 150px; max-height: 70px; object-fit: contain; }

/* ---------- Турниры и служебные блоки ---------- */

.simple-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.simple-card { padding: 24px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.simple-card h3 { margin: 0 0 8px; font-size: 20px; text-transform: uppercase; color: var(--ink); }
.team-box { padding: 24px 0; border: 0; border-top: 2px solid var(--ink); background: transparent; }
.team-box h3 { margin: 0 0 8px; font-size: 20px; text-transform: uppercase; color: var(--ink); }
.result-list { border: 0; background: transparent; }
.result-row {
  display: grid;
  grid-template-columns: 1fr 1fr 80px 1fr 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.result-row.head {
  border-bottom: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 500 12px/1.3 var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.score { text-align: center; font: 600 16px/1 var(--display); }
.standings-table { width: 100%; margin-bottom: 32px; border-collapse: collapse; font-size: 14px; }
.standings-head { font: 500 12px/1.3 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.standings-row { border-bottom: 1px solid var(--line); }
.standings-row td, .standings-row th, .standings-head td, .standings-head th { padding: 12px 14px; text-align: left; }
.achievement-item { padding: 20px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.section-notice {
  margin: 0 0 28px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--paper-deep);
  font-size: 14px;
  line-height: 1.6;
}
.empty-section-message { color: var(--muted); }

/* ---------- Адаптив ---------- */

/* ---------- Кнопка «наверх» и диалог разделов ---------- */

.scroll-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; }
.scroll-top:hover { border-color: var(--accent); color: var(--accent); }
.scroll-top svg { width: 14px; height: 14px; }

.sections-dialog {
  width: min(520px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--navy-900);
  color: var(--white);
}
.sections-dialog[open] { display: flex; flex-direction: column; }
.sections-dialog::backdrop { background: rgba(0, 0, 0, .5); }
.sections-dialog[open] { animation: dialog-in .3s ease-out; }
@keyframes dialog-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.sections-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.sections-dialog-title { margin: 0; font-size: 30px; line-height: 1; text-transform: uppercase; }
.sections-dialog-close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: none;
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.sections-dialog-close:hover { border-color: var(--accent); color: var(--accent); }
.sections-dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 24px 32px;
  display: block;
}
.sections-dialog-group { margin-top: 24px; }
.sections-dialog-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: block;
  padding: 8px 24px 24px;
}
.sections-dialog-list a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: var(--white);
  font: 400 26px/1.05 var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}
.sections-dialog-list a:hover,
.sections-dialog-list a:focus-visible { color: var(--accent); }
.sections-dialog-list a[aria-current="page"] { color: var(--accent); }
.sections-dialog-body .sections-dialog-list {
  flex: none;
  min-height: 0;
  overflow: visible;
  padding: 0;
  align-self: start;
  height: auto;
}
.sections-dialog-label {
  margin: 0 0 6px;
  font: 500 9.5px/1.4 var(--text);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.sections-dialog-label a { color: inherit; text-decoration: none; }
.sections-dialog-label a:hover { color: var(--white); }
.sections-dialog-sub { list-style: none; margin: 0; padding: 0; }
.sections-dialog-sub a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .82);
  font: 400 14.5px/1.4 var(--text);
  text-decoration: none;
}
.sections-dialog-sub a:hover,
.sections-dialog-sub a:focus-visible { color: var(--white); }
.sections-dialog-sub a[aria-current="page"] { color: var(--accent); font-weight: 600; }

@media (max-width: 1080px) {
  .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-portrait-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-heading-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .page-heading--sveden .page-heading-inner { grid-template-columns: minmax(0, 1fr); }
  .page-heading--sveden h1 { font-size: clamp(38px, 8vw, 56px); }
  .go-back { margin-bottom: 28px; font-size: 14px; }
  .go-back-icon { width: 32px; height: 32px; }
}

@media (max-width: 1400px) {
  .masthead-main { gap: 24px; }
  .primary-nav { gap: 24px; }
  .sveden-mega-inner { gap: 40px; }
  .mega-list { gap: 12px 34px; }
}

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .primary-nav { display: none; }
  .sveden-mega { display: none; }
  .masthead-main { gap: 18px; height: 88px; }
  .masthead .crest { height: 72px; }
  .menu-toggle { display: inline-flex; }
  .news-article { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .period { width: 100%; }
}

@media (max-width: 760px) {
  :root { --container: calc(100% - 40px); --masthead-h: 120px; }
  .masthead { min-height: 0; height: auto; }
  .masthead-utility-inner { height: 32px; padding: 0 20px; }
  .utility-links { gap: 16px; font-size: 9.5px; letter-spacing: .08em; margin-left: auto; }
  .masthead-main { gap: 12px; height: 88px; padding: 0 20px; }
  .masthead .crest { height: 72px; max-width: fit-content; }

  .hero { min-height: calc(100vh - var(--masthead-h)); padding: 32px 0 40px; background-position: center, center, 55% 30%; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero h1 { font-size: clamp(40px, 12vw, 64px); }
  .hero-actions .button { width: 100%; justify-content: center; }

  .content-grid { margin: 56px auto 72px; }
  .news-list { grid-template-columns: 1fr; gap: 28px; }
  .news-card > img.news-photo, .news-card > .news-photo { height: auto; aspect-ratio: 16 / 9; }

  .page-heading { padding: 24px 0 40px; min-height: 480px; }
  .page-heading h1 { font-size: clamp(34px, 10vw, 52px); }
  .person-hero-inner { grid-template-columns: 1fr; gap: 0; padding-top: 36px; }
  .person-hero-text { padding-bottom: 32px; }
  .back-link { margin-bottom: 32px; }
  .person-photo { max-height: none; aspect-ratio: 4 / 5; }
  .page-content { padding: 48px 0 64px; }

  .sveden-grid { grid-template-columns: 1fr; gap: 0; }
  .staff-portrait-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .staff-portrait-caption { padding: 14px; }
  .staff-portrait-caption h2 { font-size: 16px; }
  .staff-portrait-caption p { font-size: 12px; }

  .step-list, .contact-grid, .simple-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .video-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .site-footer { padding: 56px var(--gutter); }
  .result-row { grid-template-columns: 1fr 64px 1fr; }
  .result-row > *:nth-child(2), .result-row > *:nth-child(4) { display: none; }
}

@media (max-width: 430px) {
  .staff-portrait-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .staff-portrait-caption { padding: 10px; }
  .staff-portrait-caption h2 { font-size: 14px; }
  .staff-portrait-caption p { display: none; }
  /* Сведения сотрудника остаются видны: их наличие проверяет мониторинг. */
  .staff-portrait-caption .staff-portrait-details { display: block; font-size: 11px; }
}

@media (max-width: 480px) {
  .masthead-utility-inner { height: 30px; padding: 0 16px; }
  .utility-links { font-size: 9px; letter-spacing: .06em; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Версия сайта для слабовидящих ---------- */

html.special-version body {
  background: #000;
  color: #fff;
  font-size: 112.5%;
  line-height: 1.6;
}

html.special-version .masthead-utility { background: #000; border-bottom: 1px solid #fff; }
html.special-version .a11y-link { color: #ffec3d; border: 0; }
html.special-version .a11y-link:hover, html.special-version .a11y-link:focus-visible { background: #333; color: #fff; }

/* Гасим декоративные фоны, тени и «карточность» во всей вёрстке. */
html.special-version *,
html.special-version *::before,
html.special-version *::after {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html.special-version body,
html.special-version .masthead,
html.special-version .masthead-utility,
html.special-version .masthead-main,
html.special-version .sveden-mega,
html.special-version .site-footer,
html.special-version .page-hero,
html.special-version .page-heading,
html.special-version .page-content,
html.special-version .content-panel,
html.special-version .side-panel,
html.special-version .sections-dialog,
html.special-version dialog {
  background: #000 !important;
}

html.special-version *,
html.special-version a,
html.special-version h1,
html.special-version h2,
html.special-version h3,
html.special-version .panel-title,
html.special-version dt,
html.special-version dd,
html.special-version th,
html.special-version td { color: #fff !important; }

html.special-version a { color: #ffec3d !important; text-decoration: underline !important; }
html.special-version a:visited { color: #8ad6ff !important; }
html.special-version a:hover,
html.special-version a:focus-visible { color: #fff !important; background: #1a1a1a !important; }

html.special-version :focus-visible { outline: 3px solid #ffec3d; outline-offset: 3px; }

html.special-version img {
  filter: grayscale(100%) !important;
  opacity: .9;
}

html.special-version .crest,
html.special-version .staff-portrait,
html.special-version .footer-partner { filter: grayscale(100%) !important; }

/* Границы вместо теней — иначе блоки сливаются. */
html.special-version .page-heading,
html.special-version .page-content,
html.special-version .content-panel,
html.special-version .side-panel,
html.special-version .sveden-table,
html.special-version .sveden-table th,
html.special-version .sveden-table td,
html.special-version .doc-item,
html.special-version .sveden-row,
html.special-version .news-card { border: 1px solid #fff !important; }

html.special-version .sveden-table th { border-bottom-width: 2px !important; }
html.special-version .menu-toggle,
html.special-version .sections-dialog-close { border: 1px solid #fff !important; color: #fff !important; }

html.special-version .skip-link { background: #000; color: #fff; border: 2px solid #fff; }

/* Крупнее текст там, где размеры заданы в px и не наследуются от body. */
html.special-version .rich-text,
html.special-version .person-field dd { font-size: 19px; }
html.special-version .sveden-row dt,
html.special-version .sveden-row dd,
html.special-version .doc-item { font-size: 19px; }
html.special-version .sveden-table { font-size: 18px; }
html.special-version .sveden-table th { font-size: 17px; }

/* ---------- Переход между страницами ---------- */

/* Chrome 126+ держит снимок текущей страницы, пока грузится следующая, и
   плавно проявляет новую поверх него. Без этого между документами успевает
   мелькнуть пустой холст браузера. Остальные браузеры правило игнорируют. */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: page-fade-in .22s ease-in both; }

@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* ---------- Галерея новости ---------- */

.news-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.news-gallery__item {
  display: block;
  align-self: start;
  overflow: hidden;
  background: var(--paper-deep);
}
.news-gallery__item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: opacity .15s ease;
}
.news-gallery__item:hover img { opacity: .9; }
.news-gallery__item--video { grid-column: 1 / -1; }
.news-gallery__item video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

@media (max-width: 900px) {
  .news-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .news-gallery__item--video { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .news-gallery { grid-template-columns: minmax(0, 1fr); }
}
