/* fixes-2026.css — ADDED 2026-09-24. Правки вёрстки поверх css_2019 / css_mob_2019 */

@media only screen and (max-device-width: 766px) {

  /* 1. Зазор между шапкой и слайдером: было 80px */
  .ran .table { margin-top: 12px; }
  header.top.fix ~ .ran { padding-top: 50px !important; }

  /* 2. Фото-меню в «Кто мы» и «Карьере» — по центру, в одну колонку */
  .carier .items { margin: 0 !important; text-align: center; }
  .carier .items .item { float: none !important; display: block; width: auto !important; margin: 0 auto 24px !important; }
  .carier .items .item img { width: 100%; max-width: 345px; height: auto; }

  /* 3. Картинки, видео и таблицы в материалах не шире экрана */
  .obcont img, .content img { max-width: 100% !important; height: auto !important; }
  .obcont img[style*="float"] { float: none !important; display: block; margin: 10px auto !important; }
  .obcont iframe { max-width: 100%; }
  .obcont table { display: block; max-width: 100%; overflow-x: auto; }
  .contacts hr { width: auto !important; }
}

@media only screen and (min-device-width: 767px) {

  /* 4. Раздел услуг: меню раздела над виджетом услуг */
  .mleft { display: flex; flex-direction: column; }
  .lbord.ind .blocks { margin-left: 10px; max-width: calc(100% - 10px); }
  .mleft > * { order: 4; }
  .mleft > .lmenu { order: 1; }
  .mleft > .left_bl { order: 3; }
  .mleft > .answ { order: 2; }

  /* 5. Тёмная полоса при прокрутке — по высоте логотипа */
  header.top.fix .based { height: 53px; }
}

/* ADDED 2026-10-03: right announces - 6 items, 2nd column only on wide screens */
@media only screen and (min-width: 1780px) {
  #ajax_seo_menu__informer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto);
    grid-auto-flow: column; column-gap: 12px; width: calc(200% + 12px); }
  #ajax_seo_menu__informer .item:nth-child(4) { margin-top: 0; }
}
@media only screen and (max-width: 1779px) {
  #ajax_seo_menu__informer .item:nth-child(n+4) { display: none; }
}

/* ADDED 2026-10-03: wide screens - layout widened by 2nd announce column, centered */
@media only screen and (min-width: 1780px) {
  .ran .based, header .based, .search_form { width: 1506px; }
  .ran .table { width: 1244px; }
}

/* ADDED 2026-10-03: wide - right column keeps original 254px (was stretched by .based 1506) */
@media only screen and (min-width: 1780px) {
  .ran .table .right { width: 254px; }
}
/* ADDED 2026-10-03: desktop below 1255 (right announces hidden) - hide phone, keep RU|EN in one line with menu */
@media only screen and (min-device-width: 767px) and (max-width: 1254px) {
  header .based-right .head-phone { display: none; }
  header .based-right, header .based-right .head-info, header .based-right .lang { width: auto; }
}

/* mobile-fix 2026-10-06: history years dropdown + small lector photos (mobile) */
@media only screen and (max-width: 766px) {
  .history_year.hy-js > a, .history_year.hy-js > b, .history_year.hy-js > span, .history_year.hy-js .line_h { display: none !important; }
  .history_year.hy-js { float: none; height: auto; margin: 12px 0 16px; font-size: 16px; overflow: visible; }
  .hy-select { display: block; width: 100%; max-width: 260px; height: 44px; padding: 0 40px 0 14px; font: 18px/44px Arial, sans-serif; color: #132229;
    border: 2px solid #3BA7FF; border-radius: 0; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%233BA7FF' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
    -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer; }
  .lectors .items { display: flex; flex-wrap: wrap; gap: 12px 10px; }
  .lectors .items .both { display: none; }
  .lectors .items .item { float: none !important; width: calc(33.333% - 7px) !important; max-width: 110px; margin: 0 !important; padding: 0 !important; height: auto !important; }
  .lectors .items .item img { display: block; width: 88px !important; max-width: 100% !important; height: auto !important; object-fit: cover; margin: 0 0 6px; position: static; }
  .lectors .items .item p { font-size: 12px; line-height: 1.3; margin: 0; }
}
@media only screen and (min-width: 767px) { .hy-select { display: none; } }

/* years-fix 2026-10-06: year navigation dropdown on mobile (uses .hy-select style from mobile-fix) */
@media only screen and (max-width: 766px) {
  .yrs-js > *:not(.hy-select) { display: none !important; }
  .yrs-js { float: none !important; height: auto !important; width: auto !important; margin: 12px 0 16px !important; padding: 0 !important; overflow: visible !important; font-size: 16px; background: none !important; }
  .yrs-js::before, .yrs-js::after { display: none !important; }
}
@media only screen and (min-width: 767px) { .yrs-js > .hy-select { display: none; } }

/* share-off 2026-10-12 */
.phg-share, #icon_change, .s-buttons-footer, .ya-share2, .share-button, a[onclick*="sharer"], a[onclick*="share.php"], a[onclick*="shareArticle"], a[href*="facebook.com/sharer"] { display: none !important; }
