@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@700;800;900&display=swap');

@font-face {
  font-family: 'Noto Sans ExtBd';
  src: local('Noto Sans ExtBd'), local('Noto Sans ExtraBold'), local('Noto Sans Extrabold');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --sidebar: #08172d;
  --topbar: #081528;
  --page: #ffffff;
  --pagebg: #23374f;
  --panel: #10203a;
  --ink: #10203a;
  --white: #ffffff;
  --orange: #ff7a1d;
  --orange2: #ff8a39;
  --line: rgba(255, 255, 255, .08);
  --shadow: 0 16px 34px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--pagebg);
  color: var(--ink);
  font-family: 'Noto Sans ExtBd', 'Noto Sans', Arial, sans-serif;
  font-weight: var(--site-font-weight);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; cursor: pointer; }
button, input { font: inherit; }

.app {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
}

/* --- Сайдбар и Логотип --- */
.sidebar {
  background: linear-gradient(180deg, #07162b 0%, #0b1c39 100%);
  color: #fff;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .04);
  position: relative;
  z-index: 5;
}
.logo { display: block; padding: 15px; text-align: center; }
.sidebar-logo { max-width: 100%; height: auto; max-height: 100px; display: inline-block; }

.sidebar__content { padding: 8px 17px 0 18px; }
.sidebar__title { font-size: 13px; line-height: 1.05; text-transform: uppercase; margin-top: 11px; }
.sidebar__subtitle { font-size: 8px; line-height: 1.2; margin-top: 4px; text-transform: uppercase; opacity: .70; }
.field-label { display: block; margin: 10px 0 4px; font-size: 11px; }
.field {
  width: 100%; height: 16px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 2px;
  background: rgba(255, 255, 255, .02); color: #fff; padding: 0 8px; font-size: 10px; outline: none;
}
.btn--search {
  margin-top: 14px; width: 71px; height: 27px; border-radius: 2px; color: #fff; background: var(--orange);
  border: none; cursor: pointer; box-shadow: 0 8px 15px rgba(255, 122, 29, .22);
}

.sidebar__knowledge { margin-top: 14px; padding-top: 16px; border-top: 2px solid rgba(255, 255, 255, .12); }
.sidebar__section-title { font-size: 11px; line-height: 1.08; text-transform: uppercase; margin-bottom: 10px; color: #fff; }
.sidebar__section-title:hover { color: var(--orange); }

.knowledge-list { list-style: none; margin: 0; padding: 0; }
.knowledge-list li { position: relative; padding-left: 12px; margin: 8px 0; font-size: 7.9px; line-height: 1.25; text-transform: uppercase; opacity: .70; }
.knowledge-list li::before { content: "•"; position: absolute; left: 0; top: 0; color: var(--orange); font-size: 11px; }
.knowledge-list li.is-active { opacity: 1; color: var(--orange); }
.knowledge-list li a:hover { color: var(--orange); }

/* --- Топбар --- */
.page { background: var(--page); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 12px;
  background: linear-gradient(180deg, #081528 0%, #0a152a 100%); color: #fff;
}
.menu { display: flex; gap: 34px; text-transform: uppercase; font-size: 8.6px; }
.menu a { opacity: .98; }
.menu a:hover { color: var(--orange); }
.lang { display: flex; align-items: center; gap: 5px; height: 16px; padding: 0 6px; border-radius: 2px; background: rgba(255, 255, 255, .06); font-size: 10px; }

/* --- Крошки --- */
.breadcrumbs-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px 0 50px;
}
.breadcrumbs { font-size: 13px; color: #8a94a6; }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs__current { color: var(--ink); }
.btn-back { font-size: 13px; color: var(--orange); font-weight: bold; }
.btn-back:hover { color: var(--orange2); }

/* --- Контентная зона --- */
.bg-graph-paper {
  background-color: #ffffff;
  background-image: 
    linear-gradient(#eaebf0 1px, transparent 1px),
    linear-gradient(90deg, #eaebf0 1px, transparent 1px);
  background-size: 20px 20px;
}

.article-container {
  padding: 30px 50px 60px 50px;
  flex-grow: 1;
  max-width: 1100px;
}
.article-title {
  font-size: 32px; line-height: 1.1; margin: 0 0 25px 0; color: var(--ink); text-transform: uppercase;
}
.article-subtitle {
  font-size: 22px; margin: 40px 0 20px 0; text-transform: uppercase; color: var(--ink); border-bottom: 2px solid var(--orange); padding-bottom: 10px; display: inline-block;
}
.article-text h3 {
  font-size: 18px; color: var(--panel); margin: 30px 0 15px 0;
}
.article-text p {
  font-size: 15px; line-height: 1.6; color: #334155; margin: 0 0 15px 0;
}

/* --- Стили Таблицы --- */
.table-responsive {
  width: 100%;
  overflow-x: auto; /* Позволяет прокручивать широкие таблицы */
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  border-radius: 6px;
}
.article-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 800px; /* Чтобы колонки не сжимались слишком сильно */
}
.article-table th {
  background: var(--panel);
  color: #fff;
  font-size: 13px;
  font-weight: var(--site-font-weight);
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #0b1c39;
  white-space: nowrap;
}
.article-table td {
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  color: #334155;
  line-height: 1.4;
  vertical-align: middle;
}
.article-table.text-center th,
.article-table.text-center td {
  text-align: center;
}
.article-table td strong {
  color: var(--ink);
}

/* --- Изображения с зумом --- */
.article-figure { margin: 40px 0; padding: 0; }
.article-figure__box {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px;
  min-height: 250px; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.img-zoomable img {
  width: 100%; height: auto; max-height: 500px; object-fit: contain; cursor: zoom-in; transition: opacity 0.2s ease;
}
.img-zoomable img:hover { opacity: 0.9; }
.img-placeholder { display: none; font-size: 13px; color: #94a3b8; text-transform: uppercase; }
figcaption {
  margin-top: 10px; font-size: 13px; color: #64748b; font-style: italic;
  padding-left: 5px; border-left: 3px solid var(--orange);
}

/* --- Модальное окно (Lightbox) --- */
.lightbox {
  display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%;
  background-color: rgba(7, 21, 40, 0.95); align-items: center; justify-content: center; animation: fadeIn 0.25s ease-out;
}
.lightbox__content { max-width: 85%; max-height: 85%; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); animation: zoomIn 0.25s ease-out; }
.lightbox__close { position: absolute; top: 20px; right: 35px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; transition: color 0.2s; user-select: none; }
.lightbox__close:hover { color: var(--orange); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.95); } to { transform: scale(1); } }

/* --- Подвал --- */
.footer { background: #0b1c39; color: #fff; border-top: 2px solid rgba(255, 255, 255, .82); }
.footer__inner { min-height: 160px; padding: 25px 50px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 20px; }
.footer__col { font-size: 12px; line-height: 1.3; }
.footer__col strong { display: block; margin-top: 6px; font-weight: var(--site-font-weight); }
.footer__title { margin-bottom: 8px; }
.footer__nav { display: flex; flex-direction: column; gap: 4px; }
.footer__right { text-align: right; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .article-container, .breadcrumbs-container { padding: 20px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__right { text-align: left; }
}
.lang-switch {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.lang-switch__btn {
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 105px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  display: none;
  z-index: 1000;
}

.lang-switch.is-open .lang-switch__menu {
  display: block;
}

.lang-switch__menu a {
  display: block;
  padding: 10px 14px;
  color: #003A5C;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.lang-switch__menu a:hover {
  background: #f1f5f8;
}

.lang-switch__menu a.is-current {
  display: none;
}

/* === Bearing XLSX search module === */
body.modal-open{
  overflow:hidden;
}

.bearing-search-status{
  margin-top:10px;
  font-size:10px;
  line-height:1.35;
  color:rgba(255,255,255,.74);
}

.bearing-search-status:empty{
  display:none;
}

.bearing-search-status.is-error{
  color:#ffd0d0;
}

.btn[disabled],
.btn--search:disabled{
  cursor:wait;
  opacity:.72;
  transform:none !important;
  box-shadow:none !important;
}

.bearing-modal{
  position:fixed;
  inset:0;
  z-index:1200;
  display:none;
  align-items:center;
  justify-content:center;
  padding:26px 18px;
}

.bearing-modal.is-open{
  display:flex;
}

.bearing-modal__overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,122,29,.16), transparent 34%),
    rgba(7,15,28,.76);
  backdrop-filter:blur(6px);
}

.bearing-modal__window{
  position:relative;
  z-index:1;
  width:min(875px, calc(100vw - 32px));
  max-height:min(88vh, 860px);
  overflow:auto;
  border-radius:24px;
  background:#fff;
  color:#10203a;
  box-shadow:0 30px 80px rgba(0,0,0,.42);
  border:1px solid rgba(255,255,255,.34);
  animation:bearingModalIn .22s ease both;
}

@keyframes bearingModalIn{
  from{opacity:0; transform:translateY(12px) scale(.985)}
  to{opacity:1; transform:translateY(0) scale(1)}
}

.bearing-modal__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:22px 24px 18px;
  background:linear-gradient(135deg,#08172d 0%, #10203a 62%, #183250 100%);
  color:#fff;
  position:sticky;
  top:0;
  z-index:2;
}

.bearing-modal__title{
  margin:0;
  font-size:24px;
  line-height:1.12;
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:.01em;
}

.bearing-modal__subtitle{
  margin:7px 0 0;
  font-size:11px;
  line-height:1.35;
  opacity:.76;
}

.bearing-modal__close{
  flex:0 0 auto;
  width:38px;
  height:38px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,.1);
  color:#fff;
  font-size:30px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .18s ease, transform .18s ease;
}

.bearing-modal__close:hover{
  background:rgba(255,122,29,.95);
  transform:rotate(90deg);
}

.bearing-modal__content{
  padding:24px;
}

.bearing-detail{
  display:grid;
  grid-template-columns:minmax(0,1fr) 238px;
  gap:22px;
  align-items:stretch;
}

.bearing-detail__table{
  display:grid;
  gap:9px;
}

.bearing-row{
  display:grid;
  grid-template-columns:minmax(160px, .95fr) minmax(90px, .75fr);
  gap:14px;
  align-items:center;
  min-height:42px;
  padding:10px 13px;
  border:1px solid #edf0f5;
  border-radius:13px;
  background:#f7f9fc;
}

.bearing-row__label{
  font-size:12px;
  line-height:1.15;
  text-transform:uppercase;
  color:#6a7688;
}

.bearing-row__value{
  font-size:18px;
  line-height:1.12;
  font-weight:700;
  color:#10203a;
  text-align:right;
  word-break:break-word;
}

.bearing-detail__image-card{
  min-height:250px;
  border-radius:20px;
  background:
    linear-gradient(180deg,#f7f9fc 0%,#eef2f7 100%);
  border:1px solid #e7ecf3;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  position:relative;
  overflow:hidden;
}

.bearing-detail__image-card::before{
  content:"";
  position:absolute;
  width:220px;
  height:220px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,122,29,.18), transparent 68%);
  right:-80px;
  top:-80px;
}

.bearing-detail__img{
  position:relative;
  z-index:1;
  max-width:190px;
  max-height:230px;
  width:auto;
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 14px 18px rgba(16,32,58,.18));
}

.bearing-image-placeholder{
  position:relative;
  z-index:1;
  padding:14px;
  border:1px dashed rgba(16,32,58,.25);
  border-radius:13px;
  color:#6a7688;
  font-size:12px;
  line-height:1.35;
  text-align:center;
}

.bearing-results{
  display:grid;
  gap:12px;
}

.bearing-results__hint{
  margin:0 0 6px;
  color:#5d697a;
  font-size:13px;
  line-height:1.4;
}

.bearing-results__item{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  padding:15px 16px;
  border:1px solid #e5ebf3;
  border-radius:17px;
  background:linear-gradient(180deg,#ffffff 0%,#f7f9fc 100%);
  box-shadow:0 8px 18px rgba(16,32,58,.06);
}

.bearing-results__name{
  color:#10203a;
  font-size:16px;
  line-height:1.15;
  font-weight:700;
}

.bearing-results__params{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:9px;
}

.bearing-chip{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:24px;
  padding:5px 9px;
  border-radius:999px;
  background:#eef2f7;
  color:#43536b;
  font-size:11px;
  line-height:1;
}

.bearing-chip strong{
  color:#10203a;
  font-weight:700;
}

.bearing-results__open{
  border:none;
  border-radius:999px;
  background:linear-gradient(180deg,var(--orange2),var(--orange));
  color:#fff;
  min-width:100px;
  height:34px;
  padding:0 16px;
  cursor:pointer;
  font-size:12px;
  font-weight:700;
  box-shadow:0 10px 18px rgba(255,122,29,.2);
  transition:transform .18s ease, filter .18s ease;
}

.bearing-results__open:hover{
  transform:translateY(-1px);
  filter:saturate(1.05);
}

@media (max-width:860px){
  .bearing-detail{
    grid-template-columns:1fr;
  }

  .bearing-detail__image-card{
    min-height:190px;
  }

  .bearing-modal__title{
    font-size:20px;
  }
}

@media (max-width:620px){
  .bearing-modal{
    padding:14px 10px;
  }

  .bearing-modal__top,
  .bearing-modal__content{
    padding:18px;
  }

  .bearing-row{
    grid-template-columns:1fr;
    gap:5px;
  }

  .bearing-row__value{
    text-align:left;
    font-size:17px;
  }

  .bearing-results__item{
    grid-template-columns:1fr;
  }

  .bearing-results__open{
    width:100%;
  }
}

/* =========================================================
   KФПУ STANDARD SYSTEM FIXES — article-standard-1
   Системные элементы приведены к эталону главной страницы.
   ========================================================= */
:root{
  --site-font:'Noto Sans ExtBd','Noto Sans',Arial,sans-serif;
  --site-font-weight:800;
}

*,*::before,*::after{
  font-family:inherit;
}

body{
  font-family:var(--site-font) !important;
  font-weight:var(--site-font-weight) !important;
}

button,input,textarea,select{
  font:inherit;
  font-family:var(--site-font) !important;
  font-weight:var(--site-font-weight) !important;
}

.app{
  display:block !important;
  min-height:100vh;
  width:100%;
  padding-left:246px;
}

.sidebar{
  position:fixed !important;
  top:0;
  left:0;
  bottom:0;
  width:246px;
  height:100vh;
  overflow-y:auto;
  overflow-x:hidden;
  z-index:1000;
  box-shadow:none !important;
}

.page{
  min-width:0;
  min-height:100vh;
  background:var(--page);
}

.topbar{
  position:sticky !important;
  top:0;
  z-index:950;
  box-shadow:0 8px 22px rgba(0,0,0,.16), inset 0 -1px 0 rgba(255,255,255,.05);
}

.menu,
.menu a,
.lang,
.lang-switch__btn,
.lang-switch__menu a{
  font-weight:var(--site-font-weight) !important;
}

.lang-switch{
  position:relative;
  display:inline-flex;
  align-items:center;
  z-index:1200;
  height:auto;
  padding:0;
  background:transparent;
}

.lang-switch__btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  height:22px;
  border:0;
  background:rgba(255,255,255,.06);
  color:#fff;
  cursor:pointer;
  padding:0 8px;
  border-radius:4px;
  font-size:10px;
  line-height:1;
  transition:background-color .2s ease, color .2s ease;
}

.lang-switch__btn:hover,
.lang-switch.is-open .lang-switch__btn{
  background:rgba(255,255,255,.14);
}

.lang-switch__btn span:last-child{
  display:inline-block;
  transition:transform .2s ease;
}

.lang-switch.is-open .lang-switch__btn span:last-child{
  transform:rotate(180deg);
}

.lang-switch__menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  min-width:120px;
  padding:8px;
  display:none;
  flex-direction:column;
  gap:4px;
  background:#fff;
  border:1px solid rgba(0,58,92,.14);
  border-radius:12px;
  box-shadow:0 14px 35px rgba(0,0,0,.18);
  z-index:1300;
}

.lang-switch.is-open .lang-switch__menu{
  display:flex;
}

.lang-switch__menu::before{
  content:"";
  position:absolute;
  top:-6px;
  right:18px;
  width:12px;
  height:12px;
  background:#fff;
  border-left:1px solid rgba(0,58,92,.14);
  border-top:1px solid rgba(0,58,92,.14);
  transform:rotate(45deg);
}

.lang-switch__menu a{
  position:relative;
  display:block;
  padding:9px 12px;
  border-radius:9px;
  color:#003A5C;
  text-decoration:none;
  font-size:12px;
  line-height:1;
  white-space:nowrap;
  transition:background-color .2s ease, color .2s ease;
}

.lang-switch__menu a:hover,
.lang-switch__menu a.is-current{
  background:#003A5C;
  color:#fff;
}

.footer,
.footer__inner,
.footer__main,
.footer__bottom{
  background:#0b1c39 !important;
  background-color:#0b1c39 !important;
  background-image:none !important;
}

.footer{
  margin-top:0;
  color:#fff;
  border-top:1px solid rgba(255,255,255,.10);
  position:relative;
  z-index:5;
}

.footer__inner{
  min-height:auto !important;
  padding:18px 28px 16px 18px !important;
  display:block !important;
}

.footer__main{
  display:grid;
  grid-template-columns:minmax(220px,1fr) minmax(260px,1.35fr) auto;
  gap:24px;
  align-items:center;
}

.footer__brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-width:0;
  color:#fff;
}

.footer__logo{
  width:58px;
  height:auto;
  flex:none;
}

.footer__brand span{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.footer__brand small{
  font-size:10px;
  line-height:1.1;
  opacity:.72;
  text-transform:uppercase;
}

.footer__brand strong{
  font-size:13px;
  line-height:1.12;
  font-weight:var(--site-font-weight) !important;
  text-transform:uppercase;
}

.footer__nav{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px 15px !important;
  font-size:11px;
  line-height:1.2;
  text-transform:uppercase;
}

.footer__nav a{
  opacity:.86;
  transition:color .18s ease, opacity .18s ease;
}

.footer__nav a:hover{
  color:var(--orange);
  opacity:1;
}

.footer__cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 14px;
  border-radius:4px;
  background:linear-gradient(180deg,var(--orange2),var(--orange));
  color:#fff;
  font-size:11px;
  line-height:1;
  text-transform:uppercase;
  box-shadow:0 10px 18px rgba(255,122,29,.16);
  white-space:nowrap;
}

.footer__bottom{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  color:rgba(255,255,255,.68);
  font-size:10px;
  line-height:1.35;
}

.footer__col{
  padding-top:0 !important;
}

@media (max-width:900px){
  .app{
    padding-left:0 !important;
  }

  .sidebar{
    display:none !important;
  }

  .footer__main{
    grid-template-columns:1fr;
    justify-items:start;
  }

  .footer__nav{
    justify-content:flex-start;
  }

  .footer__bottom{
    flex-direction:column;
    align-items:flex-start;
  }
}
