/* rvd174.ru — статья-лендинг о двигателях Siemens и Innomotics (/innomotics/, шаблон «Innomotics», чанки inno.*).
   Вёрстка с нуля (09.11.2026) по замерам старого сайта (стили и скриншоты, 1440 и 390 px).
   Отличия от старого: фон баннера на всю ширину (на старом справа оставалась полоса другого цвета), заголовок меняет размер плавно,
   оба фото в одинаковых белых рамках, карусель документов идёт по кругу и не шире экрана на узких телефонах,
   на планшете фото стоят рядом, а не на всю ширину; серые тексты и красная плашка темнее (контраст). */
@layer components {
  .ino {
    --ino-gap: clamp(50px, 7vw, 100px);
    --ino-red: #ad2918;
    --ino-soft: #f0f0f0;
    --ino-band: #bd4c44;
    color: #333;
  }
  .ino > .wrap > .crumbs { margin: 20px 0 14px; }
  .ino-accent { color: var(--ino-red); }

  .ino-sec { margin-block: var(--ino-gap); }
  .ino-h2 { margin-bottom: 24px; color: #222; font-size: 18px; font-weight: 800; line-height: 1.4; letter-spacing: .5px; text-transform: uppercase; overflow-wrap: break-word; }
  .ino-h2--lg { margin-bottom: 30px; color: #333; font-size: 20px; font-weight: 700; letter-spacing: 0; }

  /* баннер */
  .ino-hero { background: #ecf0f4 url(/d/simsdbg.png.xl.webp) center / cover no-repeat; }
  .ino-hero__in { display: grid; grid-template-columns: minmax(0, 49fr) minmax(0, 45fr); align-items: center; gap: 20px; min-height: clamp(450px, 45vw, 650px); padding-block: 26px; }
  .ino-hero__title { color: #141414; font-size: clamp(28px, 3.34vw, 48px); font-weight: 700; line-height: 1.2; text-transform: uppercase; overflow-wrap: break-word; }
  .ino-hero__pic { display: block; width: 100%; height: auto; }

  /* серые карточки */
  .ino-card { margin-block: var(--ino-gap); padding: 24px; border-radius: 12px; background: var(--ino-soft); }
  .ino-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; align-items: center; gap: 20px; margin-bottom: 20px; }
  .ino-photo { padding: 16px; border-radius: 12px; background: #fff; }
  .ino-photo img { display: block; width: 100%; max-width: 427px; height: auto; margin-inline: auto; }
  .ino-grid__text { color: #444; font-size: 16px; line-height: 1.5; }
  .ino-grid__text p + p { margin-top: 20px; }
  .ino-grid__h { position: relative; margin-bottom: 26px; color: #111; font-size: 16px; font-weight: 700; line-height: 1.35; }
  .ino-grid__h::after { content: ""; position: absolute; bottom: -8px; left: 0; width: 104px; height: 3px; background: var(--ino-red); }
  .ino-notice { padding: 14px 20px; border-radius: 8px; background: #ddd; color: #444; font-size: 16px; line-height: 1.45; }

  .ino-band { margin-bottom: 24px; padding: 12px 16px; border-radius: 8px; background: var(--ino-band); color: #fff; font-size: 18px; font-weight: 400; line-height: 1.2; letter-spacing: .5px; text-align: center; text-transform: uppercase; }
  .ino-band b { font-weight: 800; }
  .ino-brand { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 24px; }
  .ino-brand__lead { position: relative; display: flex; flex-direction: column; justify-content: center; height: 100%; min-height: 200px; padding: 20px 10px; color: #333; font-size: 16px; font-weight: 700; line-height: 1.5; isolation: isolate; }
  .ino-brand__lead::after { content: ""; position: absolute; inset: 0 0 -20px 50%; z-index: -1; background: url(/d/simsdimg3.png.webp) right bottom / contain no-repeat; pointer-events: none; }
  .ino-brand__name { color: var(--ino-band); font-size: 20px; }
  .ino-brand__list { display: flex; flex-direction: column; gap: 16px; padding-left: 35px; border-left: 3px solid var(--ino-red); }
  .ino-brand__list li { display: flex; align-items: flex-start; gap: 12px; color: #333; font-size: 17px; line-height: 1.4; }
  .ino-brand__list img { flex: none; }

  /* карусель документов: все страницы в одной ячейке сетки, положение задаёт data-pos */
  .ino-docs { position: relative; max-width: 741px; margin-inline: auto; overflow: hidden; }
  .ino-docs__list { display: grid; justify-items: center; padding-block: 20px; }
  .ino-docs__item { grid-area: 1 / 1; width: min(340px, 86%); aspect-ratio: 340 / 480; overflow: hidden; border-radius: 30px; background: #fff; transition: transform .3s, opacity .3s; }
  .ino-docs__item[data-pos="0"] { z-index: 2; }
  .ino-docs__item[data-pos="-1"] { z-index: 1; opacity: .9; transform: translateX(-53%) scale(.85); }
  .ino-docs__item[data-pos="1"] { z-index: 1; opacity: .9; transform: translateX(53%) scale(.85); }
  .ino-docs__link { display: block; height: 100%; }
  .ino-docs__link img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .ino-docs__link:focus-visible { outline-offset: -4px; }
  .ino-arrow { position: absolute; top: 50%; z-index: 4; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgb(0 0 0 / .15); cursor: pointer; translate: 0 -50%; transition: background-color var(--t); }
  .ino-arrow[hidden] { display: none; }
  .ino-arrow:hover { background: #f1f5f9; }
  .ino-arrow svg { width: 22px; height: 22px; fill: none; stroke: #333; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
  .ino-arrow--prev { left: 20px; }
  .ino-arrow--next { right: 20px; }
  .ino-dots { display: flex; justify-content: center; margin-top: 8px; }
  .ino-dots[hidden] { display: none; }
  /* кнопка 24 × 24 (удобно нажимать), видимая точка 10 px */
  .ino-dots button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
  .ino-dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #ccc; transition: background-color .3s, scale .3s; }
  .ino-dots button[aria-current="true"]::before { background: #c82319; scale: 1.2; }

  /* частые вопросы */
  .ino-faq { display: flex; flex-direction: column; gap: 10px; }
  .ino-faq__item { border-radius: 12px; background: #f4f4f4; }
  .ino-faq__q { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; border-radius: 12px; color: #1a1a1a; font-size: 15px; font-weight: 700; line-height: 1.3; cursor: pointer; list-style: none; }
  .ino-faq__icon { flex: none; width: 20px; height: 20px; fill: none; stroke: #a02b23; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
  .ino-faq__item[open] .ino-faq__icon { transform: rotate(180deg); }
  .ino-faq__a { padding: 0 24px 18px; color: #666; font-size: 14px; line-height: 1.5; }

  /* заключение */
  .ino-final { margin-block: var(--ino-gap); padding: 36px 40px; border-radius: 16px; background: #f4f4f4; }
  .ino-final .ino-h2 { margin-bottom: 20px; color: #111; }
  .ino-final__in { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 40px; }
  .ino-final__main { color: #222; font-size: 22px; font-weight: 700; line-height: 1.3; }
  .ino-final__main .ino-accent { color: #b82319; }
  .ino-final__side { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-left: 24px; border-left: 2px solid #b82319; }
  .ino-final__text { color: #1a1a1a; font-size: 15px; font-weight: 700; line-height: 1.4; }

  @media (max-width: 960px) {
    .ino-hero__in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .ino-hero__pic { max-width: 500px; margin-inline: auto; }
  }
  @media (max-width: 868px) {
    /* планшет: фото рядом, текст под ними на всю ширину */
    .ino-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ino-grid__text { grid-column: 1 / -1; }
    .ino-brand { grid-template-columns: minmax(0, 1fr); }
    .ino-brand__lead { min-height: 0; }
    .ino-brand__list { padding: 20px 0 0; border-left: 0; border-top: 1px solid #ccc; }
  }
  @media (max-width: 768px) {
    .ino-final { padding: 24px; }
    .ino-final__in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .ino-final__main { font-size: 18px; }
    .ino-final__side { padding-left: 16px; }
  }
  @media (max-width: 576px) {
    .ino-grid { grid-template-columns: minmax(0, 1fr); }
    .ino-faq__q { padding: 16px 18px; }
    .ino-faq__a { padding: 0 18px 16px; }
    .ino-arrow--prev { left: 8px; }
    .ino-arrow--next { right: 8px; }
    .ino-card { padding: 20px; }
  }
}
