    :root {
      --navy: #1d3b5d;
      --navy-deep: #112d4c;
      --navy-soft: #2d4e6e;
      --light: #edf3fa;
      --white: #ffffff;
      --gold: #f7b84b;
      --orange: #ee8d25;
      --text: #213d57;
      --muted: #8897ac;
      --border: rgba(255,255,255,0.15);
      --shadow: 0 20px 40px rgba(12, 28, 44, 0.25);
      --font-logo: 18px;   /* название рядом с логотипом */
      --font-text: 14px;   /* весь остальной текст сайта */
    }

    * { box-sizing: border-box; }

    html, body {
      margin: 0;
      min-height: 100%;
      font-family: 'Noto Sans', Arial, sans-serif;
      background: #dfeaf7;
      color: var(--text);
    }

    body {
      min-height: 100vh;
      font-size: var(--font-text);
    }

    img {
      max-width: 100%;
      display: block;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .page {
      width: 100%;
      min-height: 100vh;
      background: #eaf2f7;
      overflow-x: hidden;
      /* clip, в отличие от hidden, не делает .page отдельной прокручиваемой областью и обрезает
         сдвинутые анимацией блоки — иначе они удлиняли страницу и при появлении она «подпрыгивала» */
      overflow: clip;
    }

    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: #1e5f94;
      color: var(--white);
      padding: 10px 28px 12px;
      gap: 18px;
      min-height: 96px;
      border-bottom: 1px solid var(--border);
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 190px;
    }

    .brand-logo {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      background: #fff;
      padding: 2px;
      flex-shrink: 0;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    }

    .brand-title {
      font-size: var(--font-logo);
      font-weight: 700;
      line-height: 1.25;
    }

    /* Каждая часть названия — с новой строки */
    .brand-line {
      display: block;
    }

    .brand-mark {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      background: #1e5f94;
      border: 4px solid rgba(255,255,255,0.8);
      box-shadow: inset 0 0 0 2px rgba(20, 53, 36, 0.18);
      position: relative;
      flex-shrink: 0;
    }

    .brand-mark::before,
    .brand-mark::after {
      content: "";
      position: absolute;
      inset: 12px;
      border-radius: 50%;
      border: 2px solid rgba(56, 94, 48, 0.9);
    }

    .brand-mark::after {
      inset: 6px;
      border-width: 3px;
      border-style: solid;
      border-color: rgba(255,255,255,0.9) transparent rgba(255,255,255,0.9) transparent;
    }

    .brand-name {
      font-size: var(--font-text); /*   размер шрифта */
      line-height: 1.1;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      text-align: center;
      color: #f5f9ff;
      font-weight: 700;
    }

    .page-title {
      flex: 1;
      text-align: center;
      font-size: var(--font-text);
      font-weight: 700;
      letter-spacing: 0.02em;
      color: #f5f9ff;
      margin-left: 10px;
      margin-right: 10px;
    }

    .top-tools {
      display: flex;
      align-items: center;
      gap: 18px;
      min-width: 420px;
      justify-content: flex-end;
    }

    .socials {
      display: flex;
      align-items: center;
      gap: 10px;
      color: #fff;
    }

    .social {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.18);
      font-weight: 700;
      font-size: 1.05rem;
      transition: transform 0.2s ease, background 0.2s ease;
    }

    .social:hover {
      transform: translateY(-1px);
      background: rgba(255,255,255,0.16);
    }

    .lang-switch {
      display: flex;
      align-items: center;
      gap: 8px;
      border-radius: 999px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.1);
      padding: 4px;
    }

    .lang-btn {
      border: none;
      background: transparent;
      color: #dfeeff;
      font-size: var(--font-text);
      font-weight: 700;
      padding: 7px 10px;
      border-radius: 999px;
      cursor: pointer;
      text-transform: uppercase;
      transition: background 0.2s ease;
    }

    .lang-btn.active {
      background: rgba(255,255,255,0.2);
      color: #fff;
    }

    .search-box {
      display: flex;
      align-items: center;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.18);
      border-radius: 999px;
      padding: 6px 8px 6px 14px;
      min-width: 190px;
    }

    .search-box input {
      border: none;
      outline: none;
      background: transparent;
      color: #fff;
      width: 100%;
      font-size: var(--font-text);
    }

    .search-box input::placeholder {
      color: rgba(255,255,255,0.7);
    }

    .search-btn {
      width: 34px;
      height: 34px;
      border: none;
      border-radius: 50%;
      background: rgba(255,255,255,0.1);
      color: white;
      font-size: 1rem;
      cursor: pointer;
    }

    .main-nav {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 8px 22px;
      background: #1e5f94;
      padding: 16px 18px;
      color: #f1f8ff;
      text-transform: uppercase;
      font-weight: 700;
      letter-spacing: 0.04em;
      font-size: var(--font-text);
      border-bottom: 2px solid rgba(255,255,255,0.08);
    }

    .main-nav .nav-item {
      position: relative;
    }

    .main-nav > a,
    .main-nav .nav-item > a {
      position: relative;
      display: inline-block;
      padding: 8px 14px;
      border-radius: 3px;
      opacity: 0.95;
      transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
    }

    .main-nav > a.active,
    .main-nav > a:hover,
    .main-nav > a:focus-visible,
    .main-nav .nav-item > a:hover,
    .main-nav .nav-item > a:focus-visible,
    .main-nav .nav-item:focus-within > a {
      background: var(--orange);
      color: #fff;
      opacity: 1;
    }

    .dropdown-menu {
      position: absolute;
      top: 100%;
      left: 0;
      margin-top: 2px;
      min-width: 280px;
      background: var(--white);
      box-shadow: 0 14px 28px rgba(12, 28, 44, 0.2);
      border: 1px solid rgba(30, 52, 78, 0.08);
      padding: 6px 0;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-8px);
      transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
      z-index: 20;
      text-transform: none;
      font-weight: 600;
      letter-spacing: normal;
    }

    .nav-item:hover .dropdown-menu,
    .nav-item:focus-within .dropdown-menu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .dropdown-menu a {
      display: block;
      padding: 10px 18px;
      color: var(--text);
      font-size: var(--font-text);
      white-space: nowrap;
      border-radius: 0;
      transition: background 0.2s ease, color 0.2s ease;
    }

    .dropdown-menu a:hover,
    .dropdown-menu a:focus-visible {
      background: rgba(238, 141, 37, 0.12);
      color: var(--orange);
    }

    .content {
      display: grid;
      grid-template-columns: 220px 1fr 260px;
      /* Директор с миссией длиннее слайдера — поэтому director занимает два ряда, а новости
         начинаются сразу под слайдером (ряд 2) и тянутся до конца */
      grid-template-rows: auto auto 1fr;
      grid-template-areas:
        "sidebar hero director"
        "sidebar news director"
        "sidebar news ads";
      width: 100%;
      max-width: 1600px;
      margin: 0 auto;
      background: linear-gradient(180deg, #cadef6 0%, #dceaf8 100%);
    }

    .left-menu {
      grid-area: sidebar;
      width: 220px;
      background: rgba(28, 66, 97, 0.06);
      padding: 26px 18px 20px 10px;
      color: var(--navy-deep);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      line-height: 1.3;
    }

    .left-menu ul {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .left-menu li {
      font-size: var(--font-text); /*   размер шрифта */
      line-height: 1.45;
      padding: 0 5px;
      opacity: 0.95;
    }

    .left-menu a {
      position: relative;
      display: inline-block;
      color: inherit;
      padding-bottom: 3px;
    }

    .left-menu a::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: -2px;
      height: 2px;
      background: transparent;
      transition: background 0.2s ease;
    }

    .left-menu a:hover::after,
    .left-menu a:focus-visible::after {
      background: #1e5f94;
    }

    /* Текущий раздел на внутренних страницах */
    .left-menu a.active {
      color: var(--orange);
    }

    .left-menu a.active::after {
      background: var(--orange);
    }

    /* Подпункты (например, внутри «МТБ»): выезжают справа при наведении, как выпадающее меню в шапке */
    .left-menu {
      position: relative;
      z-index: 10;  /* выезжающее подменю поверх соседних блоков */
    }

    .left-menu li {
      position: relative;
    }

    .left-menu li:has(> .submenu) > a::before {
      content: '\f054';  /* fa-chevron-right */
      font-family: 'Font Awesome 6 Free';
      font-weight: 900;
      float: right;
      margin-left: 8px;
      font-size: 10px;   /* иконка, не текст */
      line-height: 2;
      opacity: 0.6;
    }

    .left-menu .submenu {
      position: absolute;
      top: -6px;
      left: 100%;
      z-index: 20;
      display: block;
      min-width: 280px;
      margin-left: 8px;
      padding: 6px 0;
      background: var(--white);
      border: 1px solid rgba(30, 52, 78, 0.08);
      border-left: 3px solid var(--orange);
      box-shadow: 0 14px 28px rgba(12, 28, 44, 0.2);
      font-weight: 400;
      text-transform: none;
      letter-spacing: 0;
      opacity: 0;
      visibility: hidden;
      transform: translateX(-8px);
      transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    /* Невидимый мостик, чтобы меню не пропадало, пока мышь переходит к нему */
    .left-menu .submenu::before {
      content: '';
      position: absolute;
      top: 0;
      bottom: 0;
      right: 100%;
      width: 12px;
    }

    .left-menu li:hover > .submenu,
    .left-menu li:focus-within > .submenu {
      opacity: 1;
      visibility: visible;
      transform: translateX(0);
    }

    .left-menu .submenu li {
      padding: 0;
      opacity: 1;
    }

    .left-menu .submenu a {
      display: block;
      padding: 10px 18px;
      color: var(--text);
      white-space: nowrap;
      transition: background 0.2s ease, color 0.2s ease;
    }

    .left-menu .submenu a::after {
      display: none;
    }

    .left-menu .submenu a:hover,
    .left-menu .submenu a:focus-visible,
    .left-menu .submenu a.active {
      background: rgba(238, 141, 37, 0.12);
      color: var(--orange);
    }

    @media (max-width: 720px) {
      /* На телефоне справа места нет, а наведения нет — подпункты всегда видны под пунктом, со сдвигом */
      .left-menu li:has(> .submenu) > a::before {
        display: none;
      }

      .left-menu .submenu {
        position: static;
        min-width: 0;
        margin: 8px 0 0 2px;
        padding: 0 0 0 12px;
        background: none;
        border: 0;
        border-left: 2px solid var(--orange);
        box-shadow: none;
        font-weight: 600;
        opacity: 1;
        visibility: visible;
        transform: none;
      }

      .left-menu .submenu::before {
        display: none;
      }

      .left-menu .submenu a {
        padding: 4px 0;
        color: inherit;
        white-space: normal;
      }

      .left-menu .submenu a:hover,
      .left-menu .submenu a:focus-visible,
      .left-menu .submenu a.active {
        background: none;
      }
    }

    .hero-wrap {
      grid-area: hero;
      display: flex;
      flex-direction: column;
      padding: 0 18px 0 12px;
      min-width: 0;
    }

    .slider {
      position: relative;
      width: 100%;
      height: 560px;
      overflow: hidden;
      border: 1px solid rgba(0,0,0,0.06);
      box-shadow: var(--shadow);
      background: #e9eef5;
      margin-top: 16px;
    }

    .slides {
      position: relative;
      width: 100%;
      height: 100%;
    }

    .slide {
      position: absolute;
      inset: 0;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.5s ease, visibility 0.5s ease;
      background-size: cover;
      background-position: center;
    }

    .slide.active {
      opacity: 1;
      visibility: visible;
    }

    .slide-caption {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      padding: 40px 30px 54px;
      background: linear-gradient(180deg, transparent, rgba(17, 45, 76, 0.75));
      color: #fff;
      font-size: var(--font-text);
      font-weight: 800;
      text-align: center;
      text-transform: uppercase;
      letter-spacing: 0.02em;
      text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    }

    .slider-dots[hidden] {
      display: none;
    }

    .slider-dots {
      position: absolute;
      left: 50%;
      bottom: 18px;
      transform: translateX(-50%);
      display: flex;
      gap: 8px;
      align-items: center;
      justify-content: center;
      background: rgba(255,255,255,0.22);
      border-radius: 999px;
      padding: 6px 12px;
      backdrop-filter: blur(2px);
    }

    .dot {
      width: 11px;
      height: 11px;
      border-radius: 50%;
      background: rgba(255,255,255,0.7);
      border: none;
      cursor: pointer;
      transition: transform 0.2s ease, background 0.2s ease;
      padding: 0;
    }

    .dot.active {
      background: #f9f9f9;
      transform: scale(1.12);
    }

    .hero-banner {
      margin-top: -75px;
      position: relative;
      z-index: 5;
      padding: 22px 30px;
      font-size: var(--font-text);
      font-weight: 800;
      color: #fff;
      text-align: center;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      background: linear-gradient(90deg, rgba(230, 129, 31, 0.84), rgba(245, 193, 82, 0.74));
      border-radius: 0 0 0 0;
      box-shadow: 0 12px 20px rgba(115, 62, 14, 0.15);
      overflow: hidden;
    }

    /* Миссия лицея на главной — под карточкой директора (в .right-panel) */
    .mission {
      position: relative;
      width: 100%;
      margin: 0;
      padding: 16px 16px 16px 42px;
      background: var(--navy-deep);
      border-left: 4px solid var(--orange);
      box-shadow: var(--shadow);
      color: var(--white);
      font-size: var(--font-text);
      line-height: 1.6;
    }

    .mission::before {
      content: '\f10d';  /* fa-quote-left */
      font-family: 'Font Awesome 6 Free';
      font-weight: 900;
      position: absolute;
      left: 16px;
      top: 16px;
      color: var(--orange);
    }

    .mission-title {
      display: block;
      margin-bottom: 6px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.02em;
      color: var(--gold);
    }

    .mission p {
      margin: 0;
    }


    .right-panel {
      grid-area: director;
      width: 260px;
      padding: 18px 16px 18px 12px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      gap: 16px;
      background: rgba(29, 59, 93, 0.06);
    }

    .right-panel-cols {
      grid-area: ads;
      display: flex;
      flex-direction: column;
      width: 100%;
      margin-top: 18px;
      padding: 18px 16px 18px 12px;
      background: rgba(29, 59, 93, 0.06);
    }

    .director-card {
      width: 100%;
      background: rgba(255,255,255,0.24);
      border: 1px solid rgba(30, 52, 78, 0.08);
      box-shadow: 0 12px 18px rgba(19, 44, 68, 0.08);
      overflow: hidden;
    }

    .director-card img {
      width: 100%;
      height: 340px;
      object-fit: cover;
      object-position: center 30%;
      display: block;
    }

    .director-name {
      text-align: center;
      padding: 12px 14px 18px;
      background: rgba(255,255,255,0.12);
      color: var(--navy-deep);
      font-weight: 700;
      line-height: 1.4;
      font-size: var(--font-text);     /*   размер шрифта */
     }

    .right-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 6px;
    }

    .menu-dots {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      border: 1px solid rgba(25, 63, 96, 0.18);
      background: rgba(255,255,255,0.3);
      color: #1d3b5d;
      font-size: 2rem;
      line-height: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 8px 14px rgba(19, 44, 68, 0.05);
    }

    .right-icons {
      display: flex;
      gap: 12px;
      justify-content: center;
      flex-wrap: wrap;
      margin-top: 8px;
    }

    .mini-icon {
      width: 72px;
      height: 72px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 6px;
      background: rgba(255,255,255,0.2);
      border: 1px solid rgba(25,63,96,0.12);
      border-radius: 12px;
      color: var(--navy-deep);
      font-size: var(--font-text);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.03em;
      text-align: center;
      padding: 6px 4px;
    }

    .mini-icon .icon {
      font-size: 1.6rem;
      line-height: 1;
    }

    .news-section {
      grid-area: news;
      display: flex;
      align-items: flex-start;
      gap: 16px;
      margin-top: 18px;
      padding: 0 18px 18px 12px;
      min-width: 0;
    }

    .news-col {
      flex: 2;
      min-width: 0;
    }

    .side-col {
      min-width: 0;
      width: 100%;
      background: rgba(255,255,255,0.5);
      border: 1px solid rgba(30, 52, 78, 0.08);
      box-shadow: 0 8px 16px rgba(19, 44, 68, 0.06);
      padding: 14px;
      margin-top: 14px;
    }

    .section-title {
      margin: 0 0 12px;
      padding-bottom: 8px;
      border-bottom: 2px solid var(--orange);
      font-size: var(--font-text);
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.02em;
      color: var(--orange);
    }

    .news-col .section-title {
      font-size: var(--font-text);
      margin-bottom: 16px;
      padding-bottom: 10px;
    }

    .section-subtitle {
      margin: 16px 0 10px;
      font-size: var(--font-text);
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.02em;
      color: var(--navy-deep);
    }

    .news-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .news-card {
      background: var(--white);
      border: 1px solid rgba(30, 52, 78, 0.06);
      box-shadow: 0 6px 12px rgba(19, 44, 68, 0.08);
      overflow: hidden;
    }

    /* Картинка новости — почти квадрат 4:3, как обычное фото с телефона, чтобы меньше обрезалось */
    .news-card img {
      display: block;
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
    }

    .news-card-caption {
      background: var(--orange);
      color: var(--white);
      font-size: var(--font-text);
      font-weight: 700;
      text-transform: uppercase;
      line-height: 1.3;
      padding: 10px 13px;
    }

    .news-meta {
      display: flex;
      gap: 13px;
      padding: 8px 13px 10px;
      font-size: var(--font-text);
      color: var(--muted);
    }

    .announce-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .announce-item {
      padding-top: 10px;
    }

    .announce-item:first-child {
      padding-top: 0;
    }

    .announce-item + .announce-item {
      border-top: 1px dashed rgba(30, 52, 78, 0.18);
    }

    .announce-date {
      display: flex;
      gap: 10px;
      font-size: var(--font-text);
      color: var(--muted);
      margin-bottom: 4px;
    }

    .announce-item a {
      display: block;
      font-size: var(--font-text);
      font-weight: 700;
      color: var(--text);
      line-height: 1.35;
    }

    .media-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .media-item {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .media-thumb {
      position: relative;
      width: 52px;
      height: 52px;
      flex-shrink: 0;
      overflow: hidden;
      background: #1e5f94;
    }

    .media-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .media-thumb.video {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .media-icon {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #1e5f94;
      color: var(--white);
      font-size: 1rem;
    }

    .media-thumb.video .media-icon {
      position: static;
      background: #1e5f94;
    }

    .media-caption {
      font-size: var(--font-text);
      font-weight: 600;
      color: var(--text);
      line-height: 1.35;
    }

    /* ----- Записи из базы (js/content.js) ----- */

    .news-card {
      display: block;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .news-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 18px rgba(19, 44, 68, 0.14);
    }

    .news-card-noimg {
      aspect-ratio: 4 / 3;
      background: #1e5f94;
    }

    .media-play {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(17, 45, 76, 0.35);
      color: var(--white);
      font-size: 0.9rem;
    }

    .section-more {
      display: inline-block;
      margin-top: 12px;
      font-size: var(--font-text);
      font-weight: 700;
      color: var(--orange);
    }

    .section-more:hover {
      text-decoration: underline;
    }

    .content-note {
      margin: 0;
      font-size: var(--font-text);
      color: var(--muted);
    }

    .post-page {
      max-width: 1000px;
      min-height: 60vh;
      margin: 0 auto;
      padding: 28px 18px 40px;
    }

    .post-type {
      font-size: var(--font-text);
      font-weight: 800;
      text-transform: uppercase;
      color: var(--orange);
    }

    .post-title {
      margin: 8px 0 4px;
      font-size: var(--font-text);
      line-height: 1.25;
      color: var(--navy-deep);
    }

    .post-meta {
      padding: 0 0 16px;
    }

    .post-cover,
    .post-video-file {
      width: 100%;
      max-height: 560px;
      object-fit: cover;
      box-shadow: var(--shadow);
      background: #000;
    }

    .post-video {
      position: relative;
      aspect-ratio: 16 / 9;
      box-shadow: var(--shadow);
      background: #000;
    }

    .post-video iframe {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
    }

    .post-body {
      margin-top: 20px;
      font-size: var(--font-text);
      line-height: 1.7;
      white-space: pre-line;
    }

    .post-gallery {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 10px;
      margin-top: 20px;
    }

    .post-gallery img {
      width: 100%;
      height: 160px;
      object-fit: cover;
      transition: opacity 0.2s ease;
    }

    .post-gallery a:hover img {
      opacity: 0.85;
    }

    .post-list-title {
      font-size: var(--font-text);
      margin-bottom: 18px;
    }

    .post-list-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 16px;
    }

    .post-list-announce {
      background: rgba(255,255,255,0.5);
      padding: 16px;
    }

    .post-list-announce .announce-date {
      font-size: var(--font-text);
    }

    .post-list-announce .announce-item a {
      font-size: var(--font-text);
    }

    .pager {
      display: flex;
      justify-content: space-between;
      margin-top: 24px;
      font-weight: 700;
      color: #1e5f94;
    }

    /* ----- Расписание занятий (schedule.html, js/schedule.js) ----- */

    .schedule-toolbar {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 18px;
      font-size: var(--font-text);
      font-weight: 700;
      color: var(--navy-deep);
    }

    .schedule-select {
      min-width: 180px;
      padding: 7px 10px;
      font: inherit;
      font-weight: 400;
      color: var(--text);
      background: var(--white);
      border: 1px solid rgba(30, 52, 78, 0.2);
    }

    /* ----- Контакты (contacts.html) ----- */

    .contacts-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 16px;
    }

    .contact-card {
      background: var(--white);
      border: 1px solid rgba(30, 52, 78, 0.06);
      border-top: 3px solid #1e5f94;
      box-shadow: 0 6px 12px rgba(19, 44, 68, 0.08);
      padding: 14px 16px 16px;
    }

    .contact-card p {
      margin: 0 0 4px;
      line-height: 1.45;
    }

    .contact-card a {
      color: var(--text);
      font-weight: 700;
    }

    .contact-card a:hover,
    .contact-card a:focus-visible {
      color: var(--orange);
    }

    .contact-icon {
      font-size: 22px;
      color: var(--orange);
      margin-bottom: 8px;
    }

    .contact-title {
      margin: 0 0 8px;
      font-size: var(--font-text);
      font-weight: 800;
      text-transform: uppercase;
      color: var(--navy-deep);
    }

    .contacts-map-title {
      margin-top: 28px;
    }

    .contacts-map {
      border: 1px solid rgba(30, 52, 78, 0.12);
      box-shadow: 0 6px 12px rgba(19, 44, 68, 0.08);
    }

    .contacts-map iframe {
      display: block;
      width: 100%;
      height: 420px;
      border: 0;
    }

    .contacts-map-link {
      margin: 8px 0 0;
    }

    .contacts-map-link a {
      color: var(--text);
      font-weight: 700;
    }

    .contacts-map-link a:hover,
    .contacts-map-link a:focus-visible {
      color: var(--orange);
    }

    @media (max-width: 480px) {
      .contacts-map iframe { height: 300px; }
    }

    .schedule-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 16px;
    }

    .schedule-day {
      background: var(--white);
      border: 1px solid rgba(30, 52, 78, 0.06);
      border-top: 3px solid #1e5f94;
      box-shadow: 0 6px 12px rgba(19, 44, 68, 0.08);
      padding: 12px 14px 14px;
    }

    .schedule-day.today {
      border-top-color: var(--orange);
    }

    .schedule-day-title {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin: 0 0 10px;
      font-size: var(--font-text);
      font-weight: 800;
      text-transform: uppercase;
      color: var(--navy-deep);
    }

    .schedule-today {
      padding: 2px 8px;
      background: var(--orange);
      color: var(--white);
      font-weight: 700;
      text-transform: none;
    }

    .schedule-lessons {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .schedule-lesson {
      display: grid;
      grid-template-columns: 24px 92px 1fr;
      gap: 8px;
      padding: 8px 0;
      font-size: var(--font-text);
      line-height: 1.35;
    }

    .schedule-lesson + .schedule-lesson {
      border-top: 1px dashed rgba(30, 52, 78, 0.18);
    }

    .schedule-num {
      font-weight: 800;
      color: var(--orange);
    }

    .schedule-time {
      color: var(--muted);
      white-space: nowrap;
    }

    .schedule-subject {
      display: block;
      font-weight: 700;
      color: var(--text);
    }

    .schedule-details {
      display: block;
      color: var(--muted);
    }

    .site-footer {
      background: #1e5f94;
      color: #eaf2fb;
      padding: 36px 28px;
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: space-between;
    }

    .footer-col {
      flex: 1 1 200px;
      text-align: center;
      padding: 0 18px;
    }

    .footer-col + .footer-col,
    .footer-info {
      border-left: 1px solid rgba(255,255,255,0.12);
    }

    .footer-icon {
      font-size: 2rem;
      line-height: 1;
      margin-bottom: 10px;
    }

    .footer-title {
      margin: 0 0 12px;
      font-size: var(--font-text);
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }

    .footer-text p {
      margin: 0 0 6px;
      font-size: var(--font-text);
      line-height: 1.5;
      color: rgba(234, 242, 251, 0.85);
    }

    .footer-info {
      flex: 1 1 220px;
      text-align: left;
      padding: 0 18px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 4px;
      font-size: var(--font-text);
    }

    .footer-info p {
      margin: 0;
    }

    .footer-info p:first-child {
      font-weight: 700;
    }

    /* ----- Страницы разделов левого меню (license.html и т.д.) ----- */
    /* Та же сетка с именованными областями, что и на главной: слева меню, справа содержимое */

    .info-page {
      display: grid;
      grid-template-columns: 220px 1fr;
      grid-template-areas: "sidebar main";
      width: 100%;
      max-width: 1600px;
      min-height: 60vh;
      margin: 0 auto;
      background: linear-gradient(180deg, #cadef6 0%, #dceaf8 100%);
    }

    .info-main {
      grid-area: main;
      min-width: 0;
      padding: 26px 24px 40px;
    }

    .info-title {
      margin-bottom: 20px;
    }

    .doc-section + .doc-section {
      margin-top: 30px;
    }

    .doc-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 18px;
    }

    .doc-card {
      display: flex;
      flex-direction: column;
      background: var(--white);
      border: 1px solid rgba(30, 52, 78, 0.08);
      box-shadow: 0 6px 12px rgba(19, 44, 68, 0.08);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .doc-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 22px rgba(19, 44, 68, 0.14);
    }

    .doc-cover {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 230px;
      padding: 12px;
      background: #eef3f8;
      overflow: hidden;
    }

    .doc-cover img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      box-shadow: 0 4px 12px rgba(19, 44, 68, 0.18);
      transition: transform 0.25s ease;
    }

    .doc-cover:hover img {
      transform: scale(1.03);
    }

    .doc-badge {
      position: absolute;
      top: 10px;
      right: 10px;
      padding: 3px 9px;
      border-radius: 999px;
      background: rgba(17, 45, 76, 0.75);
      color: var(--white);
      font-size: var(--font-text);
    }

    .doc-info {
      display: flex;
      flex-direction: column;
      flex: 1;
      gap: 8px;
      padding: 14px 16px 16px;
    }

    .doc-title {
      margin: 0;
      font-size: var(--font-text);
      font-weight: 800;
      line-height: 1.35;
      color: var(--navy-deep);
    }

    .doc-desc {
      flex: 1;
      margin: 0;
      font-size: var(--font-text);
      line-height: 1.5;
      color: #4d6178;
    }

    .doc-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: auto;   /* кнопки всегда внизу карточки, даже если название короткое */
      padding-top: 4px;
    }

    .doc-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 7px 12px;
      border: 1px solid rgba(30, 95, 148, 0.35);
      border-radius: 4px;
      background: var(--white);
      color: #1e5f94;
      font: inherit;
      font-size: var(--font-text);
      font-weight: 700;
      cursor: pointer;
      transition: background 0.2s ease, color 0.2s ease;
    }

    .doc-btn:hover {
      background: #1e5f94;
      color: var(--white);
    }

    .doc-btn.primary {
      border-color: var(--orange);
      background: var(--orange);
      color: var(--white);
    }

    .doc-btn.primary:hover {
      background: #d97b16;
    }

    /* Фотогалерея с подписями (mtb-building.html, js/gallery.js) */
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
      gap: 18px;
    }

    .gallery-item {
      display: flex;
      flex-direction: column;
      margin: 0;
      background: var(--white);
      border: 1px solid rgba(30, 52, 78, 0.08);
      box-shadow: 0 6px 12px rgba(19, 44, 68, 0.08);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .gallery-item:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 22px rgba(19, 44, 68, 0.14);
    }

    .gallery-item a {
      display: block;
      overflow: hidden;
      aspect-ratio: 4 / 3;
      background: #eef3f8;
    }

    .gallery-item img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.25s ease;
    }

    .gallery-item a:hover img {
      transform: scale(1.04);
    }

    .gallery-item figcaption {
      padding: 12px 14px 14px;
      border-top: 3px solid var(--orange);
      font-size: var(--font-text);
      font-weight: 700;
      line-height: 1.4;
      color: var(--navy-deep);
    }

    @media (max-width: 480px) {
      .gallery-grid { grid-template-columns: 1fr; }
    }

    /* «Инженерно-педагогический состав» (staff.html, js/staff.js) */
    .staff-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 18px;
    }

    .staff-card {
      display: flex;
      flex-direction: column;
      background: var(--white);
      border: 1px solid rgba(30, 52, 78, 0.08);
      box-shadow: 0 6px 12px rgba(19, 44, 68, 0.08);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .staff-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 22px rgba(19, 44, 68, 0.14);
    }

    .staff-photo {
      display: block;
      overflow: hidden;
      aspect-ratio: 3 / 4;
      background: #eef3f8;
    }

    .staff-photo img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center top;
      transition: transform 0.25s ease;
    }

    .staff-photo:hover img {
      transform: scale(1.04);
    }

    .staff-photo--empty {
      display: flex;
      align-items: center;
      justify-content: center;
      color: #c3d0de;
    }

    .staff-photo--empty i {
      font-size: 72px;
    }

    .staff-info {
      flex: 1;
      padding: 12px 14px 14px;
      border-top: 3px solid var(--orange);
    }

    .staff-name {
      margin: 0;
      font-size: var(--font-text);
      font-weight: 700;
      line-height: 1.4;
      color: var(--navy-deep);
    }

    .staff-subject {
      margin: 6px 0 0;
      font-size: var(--font-text);
      line-height: 1.4;
      color: var(--text);
    }

    @media (max-width: 480px) {
      .staff-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    }

    /* «Профессии» (professions.html, js/professions.js) */
    .prof-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 18px;
    }

    .prof-card {
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 18px 20px 20px;
      background: var(--white);
      border: 1px solid rgba(30, 52, 78, 0.08);
      border-top: 3px solid var(--orange);
      box-shadow: 0 6px 12px rgba(19, 44, 68, 0.08);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .prof-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 22px rgba(19, 44, 68, 0.14);
    }

    .prof-head {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .prof-icon {
      display: flex;
      flex: none;
      align-items: center;
      justify-content: center;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: var(--navy-deep);
      color: var(--gold);
      font-size: 20px;  /* иконка, не текст */
      transition: background-color 0.25s ease, box-shadow 0.25s ease;
    }

    .prof-icon i {
      display: inline-block;
      transition: color 0.25s ease, text-shadow 0.25s ease;
    }

    /* При наведении на карточку иконка оживает; у каждой профессии своё движение
       (класс prof-icon--<имя иконки> ставит js/professions.js) */
    .prof-card:hover .prof-icon {
      background: #26496d;
      box-shadow: 0 0 0 4px rgba(242, 183, 5, 0.18);
    }

    .prof-card:hover .prof-icon i {
      color: #ffd23f;
      text-shadow: 0 0 8px rgba(255, 210, 63, 0.7);
    }

    .prof-card:hover .prof-icon--bolt i         { animation: prof-zap 0.9s ease-in-out infinite; }
    .prof-card:hover .prof-icon--fire i         { animation: prof-flame 0.6s ease-in-out infinite alternate; color: #ff9a3c; text-shadow: 0 0 10px rgba(255, 120, 40, 0.8); }
    .prof-card:hover .prof-icon--shirt i        { animation: prof-swing 1s ease-in-out infinite; transform-origin: 50% 0; }
    .prof-card:hover .prof-icon--utensils i     { animation: prof-wiggle 0.5s ease-in-out infinite; }
    .prof-card:hover .prof-icon--scissors i     { animation: prof-snip 0.7s ease-in-out infinite; }
    .prof-card:hover .prof-icon--wrench i       { animation: prof-turn 1s ease-in-out infinite; }
    .prof-card:hover .prof-icon--ruler i        { animation: prof-slide 1s ease-in-out infinite; }
    .prof-card:hover .prof-icon--cake-candles i { animation: prof-bounce 0.8s ease-in-out infinite; }
    .prof-card:hover .prof-icon--laptop-code i  { animation: prof-typing 0.6s steps(2) infinite; }

    @keyframes prof-zap {
      0%, 100% { transform: scale(1); opacity: 1; }
      10%      { transform: scale(1.25) rotate(-8deg); }
      20%      { opacity: 0.35; }
      30%      { transform: scale(1.15) rotate(6deg); opacity: 1; }
      45%      { opacity: 0.5; }
      55%      { transform: scale(1.2); opacity: 1; text-shadow: 0 0 16px rgba(255, 220, 80, 1); }
    }

    @keyframes prof-flame {
      from { transform: scale(1, 1) translateY(0); }
      to   { transform: scale(0.92, 1.18) translateY(-2px); }
    }

    @keyframes prof-swing {
      0%, 100% { transform: rotate(0); }
      25%      { transform: rotate(10deg); }
      75%      { transform: rotate(-10deg); }
    }

    @keyframes prof-wiggle {
      0%, 100% { transform: rotate(0); }
      25%      { transform: rotate(-14deg); }
      75%      { transform: rotate(14deg); }
    }

    @keyframes prof-snip {
      0%, 100% { transform: rotate(0) scale(1); }
      50%      { transform: rotate(-20deg) scale(1.15); }
    }

    @keyframes prof-turn {
      0%, 100% { transform: rotate(0); }
      50%      { transform: rotate(-60deg); }
    }

    @keyframes prof-slide {
      0%, 100% { transform: translateX(0); }
      25%      { transform: translateX(-4px); }
      75%      { transform: translateX(4px); }
    }

    @keyframes prof-bounce {
      0%, 100% { transform: translateY(0) scale(1); }
      40%      { transform: translateY(-6px) scale(1.08); }
      60%      { transform: translateY(0) scale(0.96, 1.04); }
    }

    /* «Печатает»: экран подрагивает и мигает, как курсор */
    @keyframes prof-typing {
      0%, 100% { transform: translateY(0); opacity: 1; }
      50%      { transform: translateY(-2px) scale(1.06); opacity: 0.75; }
    }

    @media (prefers-reduced-motion: reduce) {
      .prof-card:hover .prof-icon i { animation: none; }
    }

    .prof-name {
      margin: 0 0 4px;
      font-size: var(--font-text);
      font-weight: 800;
      line-height: 1.35;
      color: var(--navy-deep);
    }

    /* Название — кнопка, открывает фото профессии */
    .prof-name-btn {
      padding: 0;
      border: none;
      background: none;
      font: inherit;
      color: inherit;
      text-align: left;
      cursor: pointer;
      transition: color 0.2s ease;
    }

    .prof-name-btn i {
      color: var(--orange);
      font-size: 0.9em;  /* иконка, не текст */
    }

    .prof-name-btn:hover,
    .prof-name-btn:focus-visible {
      color: var(--orange);
      text-decoration: underline;
    }

    .prof-term {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 2px 10px;
      border-radius: 999px;
      background: #fdf0e1;
      color: #b8630f;
      font-size: var(--font-text);
      font-weight: 700;
    }

    .prof-text {
      margin: 0;
      font-size: var(--font-text);
      line-height: 1.6;
      color: #4d6178;
    }

    @media (max-width: 480px) {
      .prof-grid { grid-template-columns: 1fr; }
      .prof-card { padding: 16px; }
    }

    /* «История» (history.html, js/history.js): лента по годам */
    .history-heading {
      margin: 0 0 22px;
      font-size: var(--font-text);
      font-weight: 800;
      color: var(--navy-deep);
    }

    .timeline {
      position: relative;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    /* Вертикальная линия ленты */
    .timeline::before {
      content: "";
      position: absolute;
      top: 6px;
      bottom: 6px;
      left: 118px;
      width: 2px;
      background: rgba(30, 95, 148, 0.25);
    }

    .tl-item {
      position: relative;
      display: grid;
      grid-template-columns: 100px 1fr;
      gap: 0 38px;
      padding-bottom: 26px;
    }

    /* Точка на линии напротив года */
    .tl-item::before {
      content: "";
      position: absolute;
      top: 4px;
      left: 112px;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: var(--orange);
      box-shadow: 0 0 0 4px #d6e6f6;
    }

    .tl-year {
      padding-top: 1px;
      text-align: right;
      font-size: var(--font-text);
      font-weight: 800;
      color: var(--orange);
      line-height: 1.35;
    }

    .tl-body {
      min-width: 0;
      padding: 14px 18px;
      background: rgba(255, 255, 255, 0.65);
      border: 1px solid rgba(30, 52, 78, 0.08);
      box-shadow: 0 6px 12px rgba(19, 44, 68, 0.06);
      font-size: var(--font-text);
      line-height: 1.65;
    }

    .tl-body p {
      margin: 0 0 10px;
    }

    .tl-body > :last-child {
      margin-bottom: 0;
    }

    .tl-list {
      columns: 2;
      column-gap: 28px;
      margin: 0 0 10px;
      padding-left: 22px;
    }

    .tl-list li {
      break-inside: avoid;
    }

    .tl-photos {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 14px;
      margin-top: 14px;
    }

    .tl-photo {
      margin: 0;
    }

    .tl-photo a {
      display: block;
      overflow: hidden;
      background: #eef3f8;
      box-shadow: 0 4px 12px rgba(19, 44, 68, 0.15);
    }

    .tl-photo img {
      width: 100%;
      height: 170px;
      object-fit: cover;
      transition: transform 0.25s ease;
    }

    .tl-photo a:hover img {
      transform: scale(1.04);
    }

    .tl-photo figcaption {
      margin-top: 6px;
      font-size: var(--font-text);
      line-height: 1.4;
      color: #4d6178;
    }

    @media (max-width: 720px) {
      /* На телефоне год над текстом, линия слева */
      .timeline::before {
        left: 6px;
      }

      .tl-item {
        grid-template-columns: 1fr;
        gap: 6px;
        padding-left: 28px;
      }

      .tl-item::before {
        left: 0;
      }

      .tl-year {
        text-align: left;
      }

      .tl-list {
        columns: 1;
      }

      .tl-photos {
        grid-template-columns: 1fr;
      }

      .tl-photo img {
        height: auto;
      }
    }

    /* Просмотр страниц документа во весь экран */
    .lightbox-open {
      overflow: hidden;
    }

    .lightbox {
      position: fixed;
      inset: 0;
      z-index: 100;
      display: grid;
      grid-template-columns: 64px 1fr 64px;
      grid-template-rows: 1fr auto;
      background: rgba(8, 20, 34, 0.92);
    }

    .lightbox[hidden] {
      display: none;
    }

    .lightbox-stage {
      grid-column: 2;
      grid-row: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 0;
      padding: 20px 0 10px;
    }

    .lightbox-stage {
      position: relative;
    }

    .lightbox-img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      background: var(--white);
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
      transition: opacity 0.2s ease;
    }

    .lightbox-spinner {
      position: absolute;
      top: 50%;
      left: 50%;
      margin: -16px 0 0 -16px;
      font-size: 32px;
      color: var(--white);
      display: none;
    }

    .lightbox-stage.loading .lightbox-img {
      opacity: 0.25;
    }

    .lightbox-stage.loading .lightbox-spinner {
      display: block;
    }

    /* Фото ещё нет (professions.js) */
    .lightbox-empty {
      display: none;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      color: #dfeaf7;
      font-size: var(--font-text);
    }

    .lightbox-empty i {
      font-size: 56px;  /* иконка, не текст */
      color: var(--gold);
    }

    .lightbox-stage.empty .lightbox-empty {
      display: flex;
    }

    .lightbox-stage.empty .lightbox-img {
      display: none;
    }

    .lightbox-nav,
    .lightbox-close {
      border: none;
      background: rgba(255, 255, 255, 0.1);
      color: var(--white);
      font-size: 20px;
      cursor: pointer;
      transition: background 0.2s ease;
    }

    .lightbox-nav:hover,
    .lightbox-close:hover {
      background: rgba(255, 255, 255, 0.25);
    }

    .lightbox-nav {
      grid-row: 1;
      align-self: center;
      justify-self: center;
      width: 48px;
      height: 48px;
      border-radius: 50%;
    }

    .lightbox-nav.prev { grid-column: 1; }
    .lightbox-nav.next { grid-column: 3; }

    .lightbox-nav[hidden] {
      display: none;
    }

    .lightbox-close {
      position: absolute;
      top: 14px;
      right: 14px;
      z-index: 1;
      width: 44px;
      height: 44px;
      border-radius: 50%;
    }

    .lightbox-bar {
      grid-column: 1 / -1;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 8px 18px;
      padding: 10px 16px 16px;
      color: #dfeaf7;
      font-size: var(--font-text);
      text-align: center;
    }

    .lightbox-caption {
      font-weight: 700;
      color: var(--white);
    }

    .lightbox-full {
      color: var(--gold);
      text-decoration: underline;
    }

    @media (max-width: 1200px) {
      .info-page {
        grid-template-columns: 1fr;
        grid-template-areas:
          "sidebar"
          "main";
      }
    }

    @media (max-width: 720px) {
      .info-main {
        padding: 20px 16px 32px;
      }

      .doc-grid {
        grid-template-columns: 1fr;
      }

      .lightbox {
        grid-template-columns: 0 1fr 0;
      }

      /* На телефоне стрелки поверх картинки, листать можно и пальцем */
      .lightbox-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: rgba(8, 20, 34, 0.6);
      }

      .lightbox-nav.prev { left: 6px; }
      .lightbox-nav.next { right: 6px; }
    }

    /* ----- Анимация появления при загрузке и прокрутке (js/animations.js) ----- */
    /* Класс reveal-ready ставится в <head>; без JS или при «уменьшении движения» всё видно сразу */

    .reveal-ready .reveal {
      opacity: 0;
      transition: opacity 1s ease, transform 1s ease;
      transition-delay: var(--reveal-delay, 0s);
    }

    .reveal-ready .reveal.reveal-up {
      transform: translateY(60px);
    }

    .reveal-ready .reveal.visible {
      opacity: 1;
      transform: none;
    }

    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    @media (max-width: 1200px) {
      .topbar {
        flex-wrap: wrap;
        justify-content: center;
      }

      .brand {
        min-width: auto;
      }

      .top-tools {
        min-width: auto;
      }

      .content {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-template-areas:
          "sidebar"
          "hero"
          "director"
          "news"
          "ads";
      }

      .left-menu {
        width: 100%;
        padding: 20px 30px;
      }

      .left-menu > ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(180px, 1fr));
      }

      .hero-wrap {
        width: 100%;
        padding-right: 18px;
      }

      .right-panel {
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding-bottom: 24px;
      }

      .news-section {
        width: 100%;
      }

      .director-card {
        max-width: 320px;
      }

      .mission {
        max-width: 560px;
      }

      .right-panel-cols {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        width: 100%;
      }

      .side-col {
        flex: 1 1 260px;
        width: auto;
        margin-top: 0;
      }
    }

    @media (max-width: 900px) {
      .slider {
        height: 440px;
      }

      .news-grid {
        gap: 12px;
      }

      .news-col .section-title {
        font-size: var(--font-text);
      }

      .footer-col {
        flex: 1 1 45%;
        border-left: none;
        text-align: left;
        padding: 0;
      }

      .footer-info {
        flex: 1 1 100%;
        border-left: none;
        padding: 0;
        text-align: left;
      }
    }

    @media (max-width: 720px) {
      .topbar {
        padding-left: 16px;
        padding-right: 16px;
      }

      .dropdown-menu {
        left: 50%;
        transform: translate(-50%, -8px);
        min-width: 220px;
        max-width: 92vw;
      }

      .nav-item:hover .dropdown-menu,
      .nav-item:focus-within .dropdown-menu {
        transform: translate(-50%, 0);
      }

      .page-title {
        font-size: var(--font-text);
      }

      .top-tools {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
      }

      .search-box {
        width: 100%;
        max-width: 260px;
      }

      .main-nav {
        justify-content: flex-start;
        gap: 6px 12px;
      }

      .slider {
        height: 380px;
      }

      .hero-banner {
        font-size: var(--font-text);
        padding: 16px 12px;
      }

      .left-menu > ul {
        grid-template-columns: 1fr;
      }

      .right-panel {
        flex-direction: column;
        align-items: center;
      }

      .right-panel-cols {
        flex-direction: column;
        flex-wrap: nowrap;
      }

      .side-col {
        flex: 1 1 auto;
        width: 100%;
        margin-top: 14px;
      }

      .news-grid {
        grid-template-columns: 1fr;
      }

      .footer-col,
      .footer-info {
        text-align: left;
        border-left: none;
        padding: 0;
      }
    }

    @media (max-width: 480px) {
      .page-title {
        font-size: var(--font-text);
      }

      .brand-mark,
      .brand-logo {
        width: 52px;
        height: 52px;
      }

      .brand-title {
        font-size: var(--font-logo);
      }

      .slider {
        height: 220px;
        margin-top: 10px;
      }

      .slide-caption {
        padding: 24px 12px 40px;
        font-size: var(--font-text);
      }

      .hero-banner {
        margin-top: -40px;
        font-size: var(--font-text);
        padding: 10px 10px;
      }

      .news-col .section-title {
        font-size: var(--font-text);
      }

      .director-card img {
        height: 200px;
      }

      .footer-col,
      .footer-info {
        flex: 1 1 100%;
      }

      .site-footer {
        padding: 24px 18px;
      }
    }
