/* menu_oct.css */
.oct26-site {
  --paper: #f7f0e4;
  --paper-warm: #efe0c5;
  --paper-deep: #e0c39a;
  --cream: #fffaf1;
  --ink: #30271f;
  --ink-soft: #6d6258;
  --line: rgba(67, 47, 30, 0.18);
  --ochre: #b47628;
  --ochre-deep: #8c511b;
  --brown: #4a3024;
  --olive: #6e7052;
  --forest: #506251;
  --forest-gold: #f0d19d;
  --white: #fffdf8;
  --container: 1440px;
  --gutter: clamp(20px, 4vw, 64px);

  margin: 0;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}

.oct26-site,
.oct26-site * {
  box-sizing: border-box;
}

.oct26-site button,
.oct26-site input,
.oct26-site textarea,
.oct26-site select {
  font: inherit;
}

.oct26-site button,
.oct26-site a {
  -webkit-tap-highlight-color: transparent;
}

.oct26-site a {
  color: inherit;
  text-decoration: none;
}

.o26-container {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

@media (max-width: 900px) {
  .oct26-site {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow-x: clip;
  }

  .o26-container {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 620px) {
  .oct26-site { --gutter: 20px; }
}

.o26-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.o26-utility {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.o26-utility-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.o26-institution:hover {
  color: var(--ochre-deep);
}

.o26-utility-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.o26-a11y-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-transform: uppercase;
}

.o26-a11y-trigger svg {
  width: 19px;
  height: 19px;
}

.o26-a11y-trigger path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.o26-a11y-trigger circle {
  fill: currentColor;
}

.o26-account {
  padding-left: 18px;
  border-left: 1px solid var(--line);
  color: var(--ink);
}

.o26-a11y-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: var(--gutter);
  z-index: 20;
  width: min(540px, calc(100vw - 40px));
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--cream);
  box-shadow: 0 20px 50px rgba(61, 39, 23, 0.14);
}

.o26-a11y-panel,
.o26-a11y-panel > div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.o26-a11y-panel > div {
  padding-right: 12px;
}

.o26-a11y-panel span {
  width: 100%;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.o26-a11y-panel button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.o26-a11y-panel button.is-active,
.o26-a11y-panel button:hover {
  border-color: var(--ochre-deep);
  background: var(--ochre-deep);
  color: var(--white);
}

.o26-a11y-reset {
  margin-left: auto;
}

.o26-navigation {
  background: var(--cream);
}

.o26-navigation-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.o26-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 300px;
}

.o26-brand-mark {
  width: 50px;
  height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brown);
  color: #f3d5a5;
  font-family: "Prata", Georgia, serif;
  line-height: 1;
}

.o26-brand-mark b {
  font-size: 1.02rem;
  font-weight: 400;
}

.o26-brand-mark small {
  margin-top: 3px;
  color: #f3d5a5;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.o26-brand > span:last-child {
  display: grid;
  line-height: 1.2;
}

.o26-brand strong {
  font-size: 0.83rem;
  letter-spacing: 0.01em;
}

.o26-brand > span:last-child small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.o26-main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 0.77rem;
  font-weight: 600;
}

.o26-main-nav > * {
  flex: 0 0 auto;
  margin: 0;
}

.o26-main-nav > a,
.o26-main-nav > .o26-nav-static,
.o26-submenu-toggle {
  position: relative;
  padding-block: 30px;
  padding-inline: 0;
  margin: 0;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.o26-nav-static {
  color: var(--ink-soft);
  cursor: default;
}

.o26-main-nav > a::after,
.o26-submenu-toggle::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 1px;
  background: var(--ochre-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.o26-main-nav > a:hover,
.o26-main-nav > a.is-active,
.o26-submenu-toggle:hover {
  color: var(--ink);
}

.o26-main-nav > a:hover::after,
.o26-main-nav > a.is-active::after,
.o26-submenu-toggle:hover::before {
  transform: scaleX(1);
}

.o26-submenu {
  position: relative;
  margin: 0;
  padding: 0;
}

.o26-submenu-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: left;
}

.o26-submenu-panel {
  position: absolute;
  top: 70px;
  right: 0;
  width: 250px;
  display: grid;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--cream);
  box-shadow: 0 18px 45px rgba(61, 39, 23, 0.13);
}

.o26-submenu-panel a {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.o26-submenu-panel a:last-child {
  border: 0;
}

.o26-submenu-panel a:hover {
  background: var(--paper);
  color: var(--ochre-deep);
}

.o26-menu-toggle {
  width: 46px;
  height: 46px;
  display: none;
  place-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.o26-menu-toggle span {
  width: 20px;
  height: 1px;
  background: currentColor;
}

/* На широких экранах меню занимает правую половину общей сетки:
   первый пункт совпадает с центральной линией карточек, последний — с правым краем контейнера. */
@media (min-width: 1320px) {
  .o26-main-nav {
    flex: 0 0 50%;
    width: 50%;
    margin-left: auto;
    justify-content: space-between;
    gap: 0;
  }
}

#a11y.o26-a11y-panel {
  color: var(--ink);
  background: #fffaf1;
  border-color: rgba(67, 47, 30, 0.18);
  box-shadow: 0 20px 50px rgba(61, 39, 23, 0.14);
}

#a11y.o26-a11y-panel label {
  display: block;
  width: 100%;
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#a11y.o26-a11y-panel .a11y-row,
#a11y.o26-a11y-panel .btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#a11y.o26-a11y-panel .a11y-row {
  width: 100%;
  margin-bottom: 4px;
}

#a11y.o26-a11y-panel button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(67, 47, 30, 0.18);
  background: #f7f0e4;
  color: var(--ink);
  border-radius: 8px;
}

#a11y.o26-a11y-panel button:hover,
#a11y.o26-a11y-panel button:focus-visible {
  border-color: var(--ochre-deep);
  background: #efe0c5;
  color: var(--ink);
}

#a11y.o26-a11y-panel #btn-RESET {
  background: var(--ochre-deep);
  color: #fffdf8;
}

@media (max-width: 1180px) {
  .o26-utility-inner { min-height: 36px; }
  .o26-navigation-inner { min-height: 76px; }
  .o26-menu-toggle { display: grid; }
  .o26-main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 16px var(--gutter) 26px;
    border-top: 1px solid var(--line);
    background: var(--cream);
    box-shadow: 0 20px 40px rgba(61, 39, 23, 0.1);
  }
  .o26-main-nav.is-open { display: grid; }
  .o26-main-nav > a,
  .o26-main-nav > .o26-nav-static,
  .o26-submenu-toggle {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .o26-main-nav > a::after,
  .o26-submenu-toggle::before { display: none; }
  .o26-submenu-panel {
    position: static;
    width: 100%;
    padding: 6px 0 6px 16px;
    border: 0;
    box-shadow: none;
  }
}

@media (max-width: 900px) {
  .o26-a11y-trigger span,
  .o26-account { display: none; }
  .o26-brand { min-width: 0; }
  .o26-brand strong { max-width: 260px; }
}

@media (max-width: 620px) {
  .o26-utility-inner { font-size: 0.62rem; }
  .o26-brand > span:last-child { display: none; }
  #a11y.o26-a11y-panel {
    right: 18px;
    display: grid;
  }
  #a11y.o26-a11y-panel .a11y-row { grid-column: 1 / -1; }
}



/* Кнопка "Вверх" */
.scroll-top {
    position: fixed;
    bottom: 15px;
    right: 15px;                 /* справа снизу */
    
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background-color: #f7f0e4;   /* светлый фон */
    color: #8c511b;              /* стрелочка */
    
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;

    display: flex;               /* центрируем стрелку */
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s, background-color .3s;
    z-index: 1500;
}

.scroll-top:hover {
    background-color: #efe0c5;   /* чуть темнее при ховере */
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}
