/* Базовые правила хаба. Шапка, футер, контейнер и заголовки — /libs/style.css. */
.online-hub-page { isolation: isolate; background: var(--main-white); line-height: 1.33; }
.online-hub-page > .hub-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.online-hub-page svg:has(> use) { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.online-hub-page ul, .online-hub-page ol { list-style: none; }
.online-hub-page a:focus-visible, .online-hub-page summary:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.online-hub-page .breadcrumbs { margin: 0; }
.online-hub-page .breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font: 400 14px/1.6 var(--second-family); }
.online-hub-page .breadcrumbs li { display: inline-flex; align-items: center; }
.online-hub-page .breadcrumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 10px 0 6px; border-right: 1.5px solid var(--main-gray); border-top: 1.5px solid var(--main-gray); transform: rotate(45deg); }
.online-hub-page .breadcrumbs a { color: var(--crumbs); text-decoration: underline; text-decoration-color: currentColor; transition: color .3s ease, text-decoration-color .3s ease; }
.online-hub-page .breadcrumbs a:hover { color: var(--crumbs-current); text-decoration-color: transparent; }
.online-hub-page .breadcrumbs [aria-current] { color: var(--crumbs-current); margin: 0; }
.online-hub-page .hub-head__title { margin-bottom: 0; }
.online-hub-page .tcard, .online-hub-page .hub-apps > li { min-width: 0; }
.online-hub-page .hub-app b { overflow-wrap: anywhere; }

/* Посадочная онлайн-инструментов amssoft.ru (/online/). Токены — hub-tokens.css, база — /libs/style.css.
   Ниши: цвет-акцент + светлая подложка. Акценты сайта — декоративные (как плитки разделов), не кнопки и не текст (A-106) */
.online-hub-page {
  --niche-photo: #1f93ff;  --niche-photo-bg: #e8f4ff;
  --niche-pdf:   #d30131;  --niche-pdf-bg:   #fdecef;
  --niche-video: #cc33ff;  --niche-video-bg: #f9ebff;
  --doc-pdf: #e5322d; --doc-docx: #2b5797;
}
.online-hub-page :focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }

/* ── Первый экран ── */
.online-hub-page .hub-hero { background: var(--main-whitegray2); padding: 20px 0 calc(40px + var(--radius-media)); text-align: center; }
.online-hub-page .hub-hero .breadcrumbs ol { justify-content: center; }
.online-hub-page .hub-hero__title { margin: 16px 0 12px; text-wrap: balance; }
.online-hub-page .hub-hero__lead { max-width: 680px; margin: 0 auto; text-wrap: balance; font-family: var(--second-family); font-weight: 400; font-size: 18px; line-height: 1.45; }
.online-hub-page .hub-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 22px 0 0; padding: 0; list-style: none; font-family: var(--second-family); font-weight: 500; font-size: 16px; }
.online-hub-page .hub-facts li { display: inline-flex; align-items: center; gap: 8px; }
.online-hub-page .hub-facts svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--color-blue); color: #fff; stroke-width: 3; }

.online-hub-page .hub-content { position: relative; margin-top: calc(-1 * var(--radius-media)); padding: 56px 0 104px; background: var(--main-white); border-radius: var(--radius-media) var(--radius-media) 0 0; }
.online-hub-page .hub-block__title { margin: 0 auto 40px; text-align: center; text-wrap: balance; }
.online-hub-page .hub-block--narrow { max-width: 846px; margin: 104px auto 0; }

/* ── Заголовок каталога и чипы ниш ── */
.online-hub-page .hub-head { margin-bottom: 32px; text-align: center; }
.online-hub-page .hub-head__title { font-size: 32px; }
.online-hub-page .niches { display: flex; flex-wrap: wrap; gap: 8px; }
.online-hub-page .niche { display: inline-flex; align-items: center; gap: 8px; height: var(--control-h); padding: 0 16px; border: 1px solid var(--main-whitegray2); border-radius: var(--radius-control); background: var(--main-white); color: var(--main-black); font: 500 16px/1 var(--font-family); cursor: pointer; transition: background-color var(--ease), border-color var(--ease), color var(--ease); }
.online-hub-page .niche svg { width: 18px; height: 18px; }
.online-hub-page .niche--photo svg { color: var(--niche-photo); }
.online-hub-page .niche--pdf svg { color: var(--niche-pdf); }
.online-hub-page .niche--video svg { color: var(--niche-video); }
.online-hub-page .niche:hover { border-color: var(--main-lightgray); }
.online-hub-page .niche[aria-pressed="true"] { background: var(--main-black); border-color: var(--main-black); color: #fff; }
.online-hub-page .niche[aria-pressed="true"] svg { color: #fff; }
.online-hub-page .niche__n { min-width: 22px; padding: 3px 6px; border-radius: 8px; background: var(--main-whitegray); font: 500 13px/1 var(--second-family); color: var(--main-darkgray); }
.online-hub-page .niche[aria-pressed="true"] .niche__n { background: rgba(255,255,255,.18); color: #fff; }
.online-hub-page .niche__soon { padding: 3px 7px; border-radius: 8px; background: var(--niche-video-bg); font: 500 12px/1 var(--second-family); color: #8a1fb0; }
.online-hub-page .niche[aria-pressed="true"] .niche__soon { background: rgba(255,255,255,.18); color: #fff; }

/* ── Карточки инструментов ── */
.online-hub-page .hub-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; max-width: 960px; margin: 0 auto; padding: 0; list-style: none; }
.online-hub-page .tcard[hidden] { display: none; }
.online-hub-page .tcard__link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius-card); background: var(--main-white); box-shadow: var(--shadow-card); color: inherit; text-decoration: none; transition: box-shadow var(--ease), transform var(--ease); }
.online-hub-page a.tcard__link:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -8px rgba(14, 117, 126, .22); }
.online-hub-page .tcard__media { position: relative; display: grid; place-items: center; height: 200px; overflow: hidden; background: var(--accent-bg); }
.online-hub-page .tcard--photo { --accent: var(--niche-photo); --accent-bg: var(--niche-photo-bg); }
.online-hub-page .tcard--pdf { --accent: var(--niche-pdf);   --accent-bg: var(--niche-pdf-bg); }
.online-hub-page .tcard--video { --accent: var(--niche-video); --accent-bg: var(--niche-video-bg); }
.online-hub-page .tcard__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 22px 26px 26px; }
.online-hub-page .tcard__niche { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--accent-bg); font: 500 14px/1.2 var(--second-family); color: var(--main-black); }
.online-hub-page .tcard__niche svg { width: 16px; height: 16px; color: var(--accent); }
.online-hub-page .tcard__title { margin: 14px 0 8px; font: 500 24px/1.2 var(--font-family); letter-spacing: -.02em; }
.online-hub-page .tcard__text { font: 400 16px/1.45 var(--second-family); color: var(--main-darkgray); }
.online-hub-page .tcard__io { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; font: 500 14px/1.2 var(--second-family); }
.online-hub-page .tcard__io b { padding: 5px 9px; border-radius: 8px; background: var(--main-whitegray); font-weight: 500; }
.online-hub-page .tcard__io svg { width: 16px; height: 16px; color: var(--main-darkgray); }
.online-hub-page .tcard__cta { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 22px; font: 500 18px/1.2 var(--font-family); color: var(--color-orange); }
.online-hub-page .tcard__cta svg { width: 18px; height: 18px; transition: transform var(--ease); }
.online-hub-page a.tcard__link:hover .tcard__cta svg { transform: translateX(4px); }
.online-hub-page .tcard__badge { margin-top: auto; padding: 6px 12px; border-radius: 10px; background: var(--niche-video-bg); font: 500 14px/1 var(--second-family); color: #8a1fb0; }
.online-hub-page .tcard--soon .tcard__link { background: var(--main-whitegray); box-shadow: none; border: 1.5px dashed var(--main-lightgray); }
.online-hub-page .tcard--soon .tcard__media { background: transparent; }
.online-hub-page .tcard--soon .tcard__body { padding-top: 0; }
.online-hub-page .tcard--soon .tcard__badge { margin-top: 20px; }
.online-hub-page .tcard--soon .tcard__media { height: 140px; }

/* Иллюстрации карточек */
.online-hub-page .pic-crop { position: relative; height: 72%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 14px; box-shadow: 0 14px 28px -12px rgba(2, 40, 90, .45); transform: rotate(-2deg); }
.online-hub-page .pic-crop img { display: block; width: 100%; height: 100%; object-fit: cover; }
.online-hub-page .pic-crop__frame { position: absolute; left: 36%; top: 8%; width: 42%; height: 84%; border: 2px solid #fff; box-shadow: 0 0 0 999px rgba(30, 32, 36, .5); }
.online-hub-page .pic-crop__frame i { position: absolute; width: 14px; height: 14px; border: 0 solid #fff; }
.online-hub-page .pic-crop__frame i:nth-child(1) { left: -4px; top: -4px; border-width: 4px 0 0 4px; }
.online-hub-page .pic-crop__frame i:nth-child(2) { right: -4px; top: -4px; border-width: 4px 4px 0 0; }
.online-hub-page .pic-crop__frame i:nth-child(3) { left: -4px; bottom: -4px; border-width: 0 0 4px 4px; }
.online-hub-page .pic-crop__frame i:nth-child(4) { right: -4px; bottom: -4px; border-width: 0 4px 4px 0; }
.online-hub-page .pic-crop__ratio { position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; border-radius: 8px; background: var(--niche-photo); color: #fff; font: 500 13px/1 var(--second-family); }
.online-hub-page .pic-conv { display: flex; align-items: center; gap: 18px; }
.online-hub-page .pic-conv .hub-doc { width: 76px; height: 89px; filter: drop-shadow(0 12px 14px rgba(42, 44, 47, .18)); }
.online-hub-page .pic-conv .hub-doc--pdf { color: var(--doc-pdf); transform: rotate(-6deg); }
.online-hub-page .pic-conv .hub-doc--docx { color: var(--doc-docx); transform: rotate(6deg); }
.online-hub-page .pic-conv__arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-float); }
.online-hub-page .pic-conv__arrow svg { width: 20px; height: 20px; color: var(--niche-pdf); }
.online-hub-page .pic-soon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-float); }
.online-hub-page .pic-soon svg { width: 34px; height: 34px; color: var(--niche-video); }

/* ── Онлайн или программа ── */
.online-hub-page .choose { margin-top: 104px; }
.online-hub-page .choose__cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 30px; }
.online-hub-page .choose__col { padding: 32px 36px; border-radius: var(--radius-card); }
.online-hub-page .choose__col--online { background: var(--main-whitegray2); }
.online-hub-page .choose__col--app { background: var(--main-black); color: #fff; }
.online-hub-page .choose__label { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/1 var(--second-family); text-transform: uppercase; letter-spacing: .06em; color: var(--main-darkgray); }
.online-hub-page .choose__col--app .choose__label { color: #b9c0c8; }
.online-hub-page .choose__label svg { width: 18px; height: 18px; color: var(--color-blue); }
.online-hub-page .choose__when { margin: 12px 0 20px; font: 500 24px/1.25 var(--font-family); letter-spacing: -.02em; }
.online-hub-page .choose__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; font: 400 17px/1.4 var(--second-family); }
.online-hub-page .choose__list li { display: flex; gap: 10px; }
.online-hub-page .choose__list svg { flex: none; width: 22px; height: 22px; margin-top: 0; padding: 4px; border-radius: 50%; background: var(--color-blue); color: #fff; stroke-width: 3; }
.online-hub-page .hub-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.online-hub-page .hub-app { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; transition: background-color var(--ease); position: relative; }
.online-hub-page .hub-app:hover { background: rgba(255, 255, 255, .16); }
.online-hub-page .hub-app__niche { font: 500 13px/1 var(--second-family); color: var(--accent); }
.online-hub-page .hub-app--photo { --accent: #6cb9ff; } .online-hub-page .hub-app--pdf { --accent: #ff7d95; } .online-hub-page .hub-app--video { --accent: #e08cff; }
.online-hub-page .hub-app b { font: 500 17px/1.2 var(--font-family); padding-right: 22px; }
.online-hub-page .hub-app svg { position: absolute; right: 14px; bottom: 16px; width: 16px; height: 16px; }

/* ── FAQ — как на страницах инструментов ── */
.online-hub-page .hub-faq { display: grid; gap: 15px; }
.online-hub-page .hub-spoiler { border-radius: var(--radius-faq); background: var(--main-whitegray2); }
.online-hub-page .hub-spoiler summary { position: relative; display: block; padding: 18px 64px 18px 32px; list-style: none; cursor: pointer; font-weight: 500; font-size: 20px; line-height: 1.25; }
.online-hub-page .hub-spoiler summary::-webkit-details-marker { display: none; }
.online-hub-page .hub-spoiler summary svg { position: absolute; top: 50%; right: 26px; width: 22px; height: 22px; margin-top: -11px; color: var(--color-blue); transition: transform .2s ease; }
.online-hub-page .hub-spoiler[open] summary svg { transform: rotate(180deg); }
.online-hub-page .hub-spoiler p { padding: 0 64px 20px 32px; font-family: var(--second-family); font-weight: 400; font-size: 18px; line-height: 1.4; }

/* ── Адаптив ── */
@media (max-width: 1199px) {
  .online-hub-page .hub-tools { gap: 24px; }
  .online-hub-page .tcard__body { padding: 20px 22px 24px; }
  .online-hub-page .choose__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .online-hub-page .hub-apps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 991px) {
  .online-hub-page .choose__cols { grid-template-columns: minmax(0, 1fr); }
  .online-hub-page .hub-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .online-hub-page .hub-hero { padding-bottom: calc(28px + var(--radius-media)); }
  .online-hub-page .hub-hero__lead { font-size: 16px; }
  .online-hub-page .hub-facts { font-size: 15px; gap: 8px 16px; }
  .online-hub-page .hub-content { padding: 40px 0 72px; }
  .online-hub-page .hub-head__title { font-size: 26px; }
  .online-hub-page .hub-tools { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .online-hub-page .tcard__media { height: 144px; }
  .online-hub-page .pic-conv .hub-doc { width: 60px; height: 70px; }
  .online-hub-page .tcard--soon .tcard__media { display: none; }
  .online-hub-page .tcard--soon .tcard__body { padding-top: 20px; }
  .online-hub-page .tcard__title { font-size: 22px; }
  .online-hub-page .choose, .online-hub-page .hub-block--narrow { margin-top: 72px; }
  .online-hub-page .hub-block__title { margin-bottom: 28px; }
  .online-hub-page .choose__col { padding: 24px 20px; }
  .online-hub-page .choose__when { font-size: 21px; }
  .online-hub-page .choose__list { font-size: 16px; }
  .online-hub-page .hub-apps { grid-template-columns: minmax(0, 1fr); }
  .online-hub-page .hub-spoiler summary { padding: 16px 52px 16px 20px; font-size: 18px; }
  .online-hub-page .hub-spoiler summary svg { right: 18px; }
  .online-hub-page .hub-spoiler p { padding: 0 20px 18px; font-size: 16px; }
}
@media (max-width: 575px) {
  /* Чипы — лентой с прокруткой, без переноса на 2–3 ряда */
  .online-hub-page .niches { flex-wrap: nowrap; width: calc(100% + 10px); margin-right: -10px; overflow-x: auto; scrollbar-width: none; padding-right: 10px; }
  .online-hub-page .niches::-webkit-scrollbar { display: none; }
  .online-hub-page .niche { flex: none; }
  .online-hub-page .hub-facts { flex-direction: column; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { .online-hub-page * { transition: none !important; } }
/* Планшет: в 2 колонки карточка «скоро» шла бы одна во втором ряду — растягиваем её на всю ширину низкой полосой */
@media (min-width: 768px) and (max-width: 991px) {
  .online-hub-page .tcard--soon { grid-column: 1 / -1; }
  .online-hub-page .tcard--soon .tcard__link { flex-direction: row; align-items: center; }
  .online-hub-page .tcard--soon .tcard__media { flex: none; width: 160px; height: auto; align-self: stretch; }
  .online-hub-page .tcard--soon .tcard__body { padding: 22px 26px 22px 0; }
  .online-hub-page .tcard--soon .tcard__title { margin-top: 10px; }
  .online-hub-page .tcard--soon .tcard__badge { margin-top: 14px; }
}

/* В трёхколоночной сетке оставляем названию программы всю ширину карточки. */
@media (min-width: 1200px), (min-width: 768px) and (max-width: 991px) {
  .online-hub-page .hub-app { padding: 14px 12px; }
  .online-hub-page .hub-app__niche { padding-right: 20px; }
  .online-hub-page .hub-app b { padding-right: 0; font-size: 16px; }
  .online-hub-page .hub-app svg { top: 13px; right: 12px; bottom: auto; }
}
