/*
 * Оформление сайта в фирменном стиле Университета ИТМО:
 * шрифт Golos, чёрный и белый как основа, яркие акцентные цвета разделов.
 * Тот же файл подключается в редакторе, поэтому текст при правке выглядит как на сайте.
 */

@font-face { font-family: "Golos"; src: url("../fonts/Golos_Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Golos"; src: url("../fonts/Golos_Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Golos"; src: url("../fonts/Golos_Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --ink: #1d1d1b;
  --paper: #ffffff;
  --soft: #f3f3f0;
  --line: #d9d9d3;
  --muted: #5f5f5a;
  --link: #1946ba;
  --danger: #c4002f;
  --ok: #0a7a43;

  --blue: #1946ba;
  --violet: #7f00ff;
  --cyan: #25cff2;
  --yellow: #ffc720;
  --red: #ec0b43;
  --green: #00b86b;

  --accent: var(--blue);
  --on-accent: #fff;

  --font: "Golos", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gap: clamp(16px, 3vw, 32px);
  --radius: 4px;
}

.c-blue   { --accent: var(--blue);   --on-accent: #fff; }
.c-violet { --accent: var(--violet); --on-accent: #fff; }
.c-cyan   { --accent: var(--cyan);   --on-accent: #1d1d1b; }
.c-yellow { --accent: var(--yellow); --on-accent: #1d1d1b; }
.c-red    { --accent: var(--red);    --on-accent: #fff; }
.c-green  { --accent: var(--green);  --on-accent: #1d1d1b; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font: 400 18px/1.6 var(--font);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

img, video, iframe { max-width: 100%; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }

.skip { position: absolute; left: -999px; top: 0; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { left: 8px; top: 8px; }

.muted { color: var(--muted); font-size: 0.89em; }
.lead { font-size: 1.11em; color: #33332f; max-width: 46em; margin: 0 0 1.4em; }

.badge {
  display: inline-block; vertical-align: 0.12em; margin-left: 6px; padding: 1px 7px;
  font: 700 11px/1.6 var(--font); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink); background: var(--yellow); border-radius: 2px; white-space: nowrap;
}
.badge--soft { background: var(--soft); color: var(--muted); }

.ico { flex: none; vertical-align: -0.2em; }

/* ------------------------------------------------------------------ кнопки и формы */

.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: 700 16px/1.2 var(--font); text-decoration: none;
  padding: 13px 22px; border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: #fff; transition: background 0.15s, color 0.15s, transform 0.1s;
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--small { padding: 7px 13px; font-size: 14px; }
.btn--danger { background: var(--danger); border-color: var(--danger); }
.btn--danger:hover { background: #99001f; border-color: #99001f; }

.linkbtn {
  font: inherit; font-size: 14px; color: var(--link); background: none; border: 0; padding: 2px 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 0.18em;
}
.linkbtn--danger { color: var(--danger); }

.form { display: grid; gap: 18px; max-width: 460px; margin: 0 0 1.4em; }
.form--row { max-width: none; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: end; }
.field { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 400 17px/1.4 var(--font); color: var(--ink); background: #fff;
  border: 2px solid var(--ink); border-radius: var(--radius); padding: 10px 12px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--violet); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--blue); flex: none; }
.check small { display: block; color: var(--muted); }

.notice {
  display: flex; gap: 10px; align-items: flex-start; margin: 0 0 1.2em; padding: 12px 16px;
  border-left: 6px solid var(--ink); background: var(--soft); font-size: 16px;
}
.notice--warn { border-color: var(--yellow); background: #fff7dc; }
.notice--error { border-color: var(--danger); background: #ffe9ee; }
.notice--ok { border-color: var(--ok); background: #e3f6ec; }

/* ------------------------------------------------------------------ шапка и меню */

.hdr { background: #fff; position: relative; z-index: 20; }
.hdr__in { display: flex; align-items: center; flex-wrap: wrap; gap: 0 22px; padding-top: 18px; }
.hdr__itmo { display: block; line-height: 0; flex: none; }
.hdr__itmo img { height: 32px; width: auto; }
.hdr__site {
  display: grid; text-decoration: none; color: var(--ink); line-height: 1.15;
  padding-left: 22px; border-left: 2px solid var(--ink); margin-right: auto;
}
.hdr__site strong { font-weight: 900; font-size: 19px; letter-spacing: -0.01em; }
.hdr__site span { font-size: 13px; color: var(--muted); }

.hdr__burger { display: none; }

.nav { flex: 1 0 100%; margin-top: 16px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 2px; }
.nav__item { position: relative; display: flex; align-items: stretch; }
.nav__link {
  display: block; padding: 13px 16px 12px; font-weight: 700; font-size: 16px; line-height: 1.25;
  color: var(--ink); text-decoration: none; position: relative;
}
.nav__item:first-child .nav__link { padding-left: 0; }
.nav__link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.18s;
}
.nav__item:first-child .nav__link::after { left: 0; }
.nav__item:hover > .nav__link::after, .nav__item.is-current > .nav__link::after, .nav__link:focus-visible::after { transform: scaleX(1); }

.nav__more { display: none; }
.nav__sub {
  list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; top: 100%; min-width: 280px; max-width: 420px;
  background: var(--ink); display: none; z-index: 30; max-height: 70vh; overflow: auto;
}
/* у последних пунктов выпадающий список раскрывается влево, чтобы не уходить за край экрана */
.nav__item:nth-last-child(-n+2):not(:first-child) > .nav__sub { left: auto; right: 0; }
@media (min-width: 761px) {
  .nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub { display: block; }
}
.nav__sub a { display: block; padding: 8px 18px; color: #fff; text-decoration: none; font-size: 15px; line-height: 1.3; }
.nav__sub a:hover, .nav__sub a:focus-visible { background: var(--accent); color: var(--on-accent); }
.nav__sub a[aria-current] { box-shadow: inset 5px 0 0 var(--accent); }

/* ------------------------------------------------------------------ главная */

.hero { border-bottom: 2px solid var(--ink); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: var(--gap); align-items: center; padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(28px, 5vw, 64px); }
.hero__kicker { margin: 0 0 14px; font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.hero__title { font-weight: 900; font-size: clamp(2.1rem, 5.4vw, 4.4rem); line-height: 1.0; letter-spacing: -0.025em; text-wrap: balance; }
.hero__lead { margin-top: 22px; max-width: 36em; }
.hero__lead p { text-align: left !important; }
.hero__art svg { display: block; width: 100%; height: auto; max-width: 440px; margin-left: auto; }

.cards-wrap { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(40px, 6vw, 80px); }
.cards-h { font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.015em; margin-bottom: 22px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.card { background: var(--accent); color: var(--on-accent); border-radius: var(--radius); min-height: 300px; display: flex; }
.card__link {
  flex: 1; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto auto; gap: 6px 14px;
  padding: 24px; color: inherit; text-decoration: none; position: relative; transition: transform 0.18s;
}
.card__num { font-weight: 900; font-size: 15px; letter-spacing: 0.06em; }
.card .art { grid-column: 2; grid-row: 1 / span 2; width: clamp(96px, 11vw, 132px); height: auto; justify-self: end; opacity: 0.95; transition: transform 0.25s; }
.card__title { grid-column: 1 / -1; align-self: end; font-weight: 900; font-size: clamp(1.45rem, 2.1vw, 1.8rem); line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
.card__sum { grid-column: 1 / -1; font-size: 15.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 2px solid currentColor; font-weight: 700; font-size: 15px; }
.card__meta .ico { margin-left: auto; transition: transform 0.18s; }
.card__link:hover .card__meta .ico { transform: translateX(5px); }
.card__link:hover .art { transform: rotate(-4deg) scale(1.04); }
.card .badge { background: #fff; }

/* ------------------------------------------------------------------ страница */

.page { padding-top: 22px; padding-bottom: clamp(40px, 6vw, 80px); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }

.page__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.page--side .page__grid { grid-template-columns: 300px minmax(0, 1fr); }

.doc { min-width: 0; max-width: 860px; }
.doc--wide { max-width: none; }
.doc__title {
  font-weight: 900; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance;
  margin: 0 0 0.75em; padding-bottom: 0.45em; position: relative; overflow-wrap: anywhere;
}
.doc__title--long { font-size: clamp(1.5rem, 2.5vw, 2.1rem); line-height: 1.12; letter-spacing: -0.012em; }
.doc__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 88px; height: 8px; background: var(--accent); }
.doc__meta { margin: 2.5em 0 0; font-size: 14px; color: var(--muted); }
.h2 { font-weight: 900; font-size: 1.55rem; letter-spacing: -0.01em; margin: 2em 0 0.7em; }

.narrow { max-width: 720px; padding-top: 36px; padding-bottom: 72px; }
.narrow--wide { max-width: 1000px; }
.bignum { font-weight: 900; font-size: clamp(5rem, 18vw, 10rem); line-height: 0.9; margin: 0 0 0.1em; color: var(--blue); letter-spacing: -0.04em; }

/* боковое оглавление раздела */
.side { min-width: 0; }
.side__box { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; border-top: 8px solid var(--accent); background: var(--soft); border-radius: 0 0 var(--radius) var(--radius); }
.is-editor .side__box { top: 72px; max-height: calc(100vh - 88px); }
.side__head { list-style: none; padding: 16px 18px 12px; display: grid; gap: 2px; cursor: default; }
.side__head::-webkit-details-marker { display: none; }
.side__label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.side__title { font-weight: 900; font-size: 19px; line-height: 1.15; color: var(--ink); text-decoration: none; }
.side__title:hover { text-decoration: underline; }

.tree { padding: 0 8px 12px; font-size: 15.5px; line-height: 1.3; }
.tree__list { list-style: none; margin: 0; padding: 0; }
.tree__list--sub { margin-left: 14px; border-left: 2px solid var(--line); display: none; }
.tree__item.is-open > .tree__list--sub { display: block; }
.tree__row { display: flex; align-items: stretch; border-radius: 3px; }
.tree__row a { flex: 1; min-width: 0; padding: 7px 10px; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; border-radius: 3px; }
.tree__row a:hover { background: #e6e6e1; }
.tree__item.is-current > .tree__row a { background: var(--ink); color: #fff; font-weight: 700; }
.tree__toggle { flex: none; width: 32px; border: 0; background: none; cursor: pointer; position: relative; border-radius: 3px; }
.tree__toggle:hover { background: #e6e6e1; }
.tree__toggle::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -5px 0 0 -5px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); transition: transform 0.15s;
}
.tree__item.is-open > .tree__row .tree__toggle::before { transform: rotate(45deg); margin: -6px 0 0 -4px; }

/* вложенные страницы и переходы */
.kids { list-style: none; margin: 1.6em 0 0; padding: 0; border-top: 2px solid var(--ink); }
.kids > li { border-bottom: 1px solid var(--line); }
.kids__link { display: grid; gap: 2px; padding: 14px 44px 14px 0; text-decoration: none; color: var(--ink); position: relative; }
.kids__link::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 10px; height: 10px; margin-top: -6px;
  border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg); transition: right 0.15s;
}
.kids__link:hover::after { right: 4px; border-color: var(--link); }
.kids__link:hover .kids__title { color: var(--link); }
.kids__title { font-weight: 700; font-size: 1.06em; line-height: 1.3; }
.kids__sum { font-size: 15px; color: var(--muted); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 3em; }
.pager__link { display: grid; gap: 4px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.pager__link:hover { background: var(--ink); color: #fff; }
.pager__link--next { text-align: right; grid-column: 2; }
.pager__dir { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 4px; }
.pager__link--next .pager__dir { justify-content: flex-end; }
.pager__title { font-weight: 700; line-height: 1.25; }

.embed { margin-top: 1.2em; }
.embed__box { overflow: hidden; background: #fff; }
.embed iframe { display: block; width: 100%; height: 860px; border: 0; }
.embed__open { margin: 14px 0 0; }

/* ------------------------------------------------------------------ текст страницы */

.content { overflow-wrap: break-word; }
.content::after { content: ""; display: block; clear: both; }
.content > :first-child { margin-top: 0; }
.content > :last-child { margin-bottom: 0; }
.content p { margin: 0 0 1em; }
.content h2 { font-weight: 900; font-size: 1.62rem; letter-spacing: -0.012em; margin: 1.9em 0 0.6em; }
.content h3 { font-weight: 700; font-size: 1.3rem; margin: 1.7em 0 0.5em; }
.content h4 { font-weight: 700; font-size: 1.08rem; margin: 1.5em 0 0.4em; }
.content ul, .content ol { margin: 0 0 1em; padding-left: 1.5em; }
.content li { margin: 0.3em 0; }
.content li::marker { font-weight: 700; }
.content ul > li::marker { color: var(--accent); }
.c-yellow .content ul > li::marker, .c-cyan .content ul > li::marker { color: var(--ink); }
.content img { height: auto; border-radius: 2px; }
.content a > img { outline: 0; }
.content figure { margin: 1.6em 0; text-align: center; }
.content figure img { display: block; margin: 0 auto; }
.content figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }
.content figure.align-left, .content img.align-left { float: left; margin: 0.3em 1.4em 1em 0; max-width: 50%; }
.content figure.align-right, .content img.align-right { float: right; margin: 0.3em 0 1em 1.4em; max-width: 50%; }
.content video { display: block; width: 100%; max-width: 860px; height: auto; margin: 1.4em 0; background: #000; border-radius: var(--radius); }
.content iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; margin: 1.4em 0; }
.content hr { border: 0; border-top: 2px solid var(--ink); margin: 2em 0; }
.content blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 6px solid var(--accent); font-size: 1.05em; }
.content sub, .content sup { font-size: 0.72em; line-height: 0; }

.content table { border-collapse: collapse; margin: 1.4em 0; font-size: 16px; line-height: 1.4; max-width: 100%; }
.content th, .content td { border: 1px solid var(--ink); padding: 8px 12px; vertical-align: top; text-align: left; }
.content th { background: var(--soft); font-weight: 700; }
.content thead th { background: var(--ink); color: #fff; }
.content thead th a { color: #fff; }
.content caption { caption-side: top; text-align: left; font-weight: 700; padding-bottom: 8px; }
.table-scroll { overflow-x: auto; margin: 1.4em 0; }
.table-scroll > table { margin: 0; }

.content .kg-note { margin: 1.4em 0; padding: 14px 18px; background: var(--soft); border-left: 8px solid var(--accent); }
.content .kg-note > :last-child { margin-bottom: 0; }
.hero .content .kg-note { background: none; padding: 0 0 0 18px; }

.content .kg-variants { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.2em 0 1.6em; }
.content .kg-variants a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 52px; padding: 9px 12px;
  border: 2px solid var(--ink); border-radius: var(--radius); font-weight: 700; line-height: 1.2; color: var(--ink); text-decoration: none; background: #fff;
}
.content .kg-variants a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ссылки на файлы получают пометку типа — см. site.js */
.content a[data-file]::after {
  content: attr(data-file); display: inline-block; margin-left: 6px; padding: 0 5px; vertical-align: 0.1em;
  font: 700 10.5px/1.7 var(--font); letter-spacing: 0.04em; color: var(--muted); border: 1px solid var(--line); border-radius: 2px; text-decoration: none;
}

/* ------------------------------------------------------------------ тест для самопроверки */

.quiz { margin: 1.6em 0; }
.content .quiz__list, .quiz__list { list-style: none; margin: 0; padding: 0; counter-reset: q; display: grid; gap: 18px; }
.content .quiz__q, .quiz__q { margin: 0; counter-increment: q; border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px 20px 16px; }
.quiz__q fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz__text { padding: 0; font-weight: 700; font-size: 1.05em; line-height: 1.35; margin-bottom: 12px; }
.quiz__text::before { content: counter(q) ". "; color: var(--accent); }
.c-yellow .quiz__text::before, .c-cyan .quiz__text::before { color: var(--ink); }
.quiz__img { display: block; margin: 0 0 14px; max-height: 420px; height: auto; }
.quiz__hint { margin: -6px 0 10px; font-size: 14px; color: var(--muted); }
.quiz__options { display: grid; gap: 6px; }
.quiz__opt { display: flex; gap: 12px; align-items: flex-start; padding: 9px 12px; border: 2px solid transparent; border-radius: var(--radius); background: var(--soft); cursor: pointer; line-height: 1.4; }
.quiz__opt:hover { border-color: var(--ink); }
.quiz__opt input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--ink); }
.quiz__opt img { display: block; margin-top: 6px; max-height: 220px; height: auto; }
.quiz__q.is-done .quiz__opt { cursor: default; }
.quiz__q.is-done .quiz__opt:hover { border-color: transparent; }
.quiz__opt.is-right { background: #dff5e8; border-color: var(--ok) !important; }
.quiz__opt.is-wrong { background: #ffe4ea; border-color: var(--danger) !important; }
.quiz__check { margin-top: 12px; }
.quiz__result { margin: 12px 0 0; font-weight: 700; min-height: 0; }
.quiz__result:empty { display: none; }
.quiz__result.is-ok { color: var(--ok); }
.quiz__result.is-bad { color: var(--danger); }
.quiz__total { margin-top: 18px; padding: 16px 20px; background: var(--ink); color: #fff; border-radius: var(--radius); display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; font-weight: 700; }
.quiz__total[hidden] { display: none; }
.quiz__total .btn { background: #fff; color: var(--ink); border-color: #fff; }

/* ------------------------------------------------------------------ просмотр картинок */

.zoom { position: fixed; inset: 0; z-index: 900; background: rgba(20, 20, 18, 0.94); display: grid; grid-template-rows: auto 1fr; }
.zoom__bar { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 16px; }
.zoom__bar a, .zoom__bar button { font: 700 15px/1 var(--font); color: #fff; background: none; border: 2px solid #fff; border-radius: var(--radius); padding: 10px 16px; cursor: pointer; text-decoration: none; }
.zoom__bar a:hover, .zoom__bar button:hover { background: #fff; color: var(--ink); }
.zoom__stage { overflow: auto; display: grid; place-items: center; padding: 0 16px 16px; }
.zoom__stage img { max-width: 100%; max-height: 100%; background: #fff; cursor: zoom-in; }
.zoom.is-full .zoom__stage { place-items: start; }
.zoom.is-full .zoom__stage img { max-width: none; max-height: none; cursor: zoom-out; }
.content a.is-zoomable, .content img.is-zoomable { cursor: zoom-in; }

/* ------------------------------------------------------------------ подвал */

.ftr { background: var(--ink); color: #fff; margin-top: auto; font-size: 15px; line-height: 1.5; }
.ftr a { color: #fff; }
.ftr__in { display: grid; grid-template-columns: 200px repeat(3, minmax(0, 1fr)); gap: 28px var(--gap); padding-top: 44px; padding-bottom: 30px; }
.ftr__brand img { height: 40px; width: auto; }
.ftr__title { font-weight: 900; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 10px; color: #fff; }
.ftr__col p { margin: 0 0 8px; color: #d6d6d0; }
.ftr__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.ftr__low { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 22px; border-top: 1px solid #45453f; color: #a9a9a2; font-size: 14px; }
.ftr__low a { color: #a9a9a2; }
.ftr__low a:hover { color: #fff; }

/* ------------------------------------------------------------------ узкие экраны */

@media (max-width: 960px) {
  .page--side .page__grid { grid-template-columns: minmax(0, 1fr); }
  .side__box { position: static; max-height: none; }
  .is-editor .side__box { max-height: none; }
  .side__head { cursor: pointer; padding-right: 48px; position: relative; }
  .side__head::after {
    content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
    border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); transition: transform 0.15s;
  }
  .side__box[open] .side__head::after { transform: rotate(-135deg); margin-top: -2px; }
  .ftr__in { grid-template-columns: 1fr 1fr; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .hdr__in { padding-top: 12px; padding-bottom: 12px; flex-wrap: nowrap; gap: 0 14px; border-bottom: 2px solid var(--ink); }
  .hdr__itmo img { height: 26px; }
  .hdr__site { padding-left: 14px; min-width: 0; }
  .hdr__site strong { font-size: 16px; }
  .hdr__site span { display: none; }
  .hdr__burger {
    display: inline-flex; align-items: center; gap: 8px; flex: none; cursor: pointer;
    font: 700 15px/1 var(--font); color: var(--ink); background: none; border: 2px solid var(--ink); border-radius: var(--radius); padding: 9px 12px;
  }
  .hdr__burger-box { display: grid; gap: 4px; width: 18px; }
  .hdr__burger-box i { display: block; height: 2px; background: currentColor; transition: transform 0.15s, opacity 0.15s; }
  .hdr__burger[aria-expanded="true"] .hdr__burger-box i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hdr__burger[aria-expanded="true"] .hdr__burger-box i:nth-child(2) { opacity: 0; }
  .hdr__burger[aria-expanded="true"] .hdr__burger-box i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; border: 0; background: var(--ink); max-height: calc(100vh - 70px); overflow: auto; }
  .nav.is-open { display: block; }
  .nav__list { display: block; padding: 6px 0 12px; }
  .nav__item { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid #3b3b36; }
  .nav__link, .nav__item:first-child .nav__link { color: #fff; padding: 14px var(--gap); font-size: 17px; box-shadow: inset 6px 0 0 var(--accent); }
  .nav__link::after { display: none; }
  .nav__more { display: block; width: 56px; background: none; border: 0; border-left: 1px solid #3b3b36; cursor: pointer; position: relative; }
  .nav__more::before {
    content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -7px 0 0 -5px;
    border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); transition: transform 0.15s;
  }
  .nav__more[aria-expanded="true"]::before { transform: rotate(-135deg); margin-top: -2px; }
  .nav__sub { position: static; display: none; grid-column: 1 / -1; max-width: none; padding: 0 0 10px; max-height: none; background: #2b2b28; }
  .nav__item.is-expanded > .nav__sub { display: block; }
  .nav__sub a { padding: 10px var(--gap) 10px calc(var(--gap) + 12px); }

  .pager { grid-template-columns: 1fr; }
  .pager__link--next { grid-column: 1; }
  .content figure.align-left, .content img.align-left, .content figure.align-right, .content img.align-right { float: none; margin: 1.2em 0; max-width: 100%; }
  .ftr__in { grid-template-columns: 1fr; }
  .card { min-height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .hdr, .ftr, .side, .pager, .crumbs, .abar, .skip { display: none !important; }
  body { font-size: 12pt; }
  .page--side .page__grid { grid-template-columns: 1fr; }
  .content a { color: inherit; }
}
