@charset "utf-8";
/* Общая вёрстка всех сайтов. Без фреймворков: сетка на grid/flex, цвета из tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-text);
  font: 400 var(--fs-1)/1.6 var(--font);
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-primary-hover); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 var(--sp-4); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-5); }
h2 { font-size: var(--fs-4); }
h3 { font-size: var(--fs-3); }
p { margin: 0 0 var(--sp-4); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sp-8) 0; }
.section--tight { padding: var(--sp-7) 0; }
.section--surface { background: var(--c-surface); }
.section--dark { background: var(--c-dark); color: var(--c-dark-text); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.section__head h2 { margin: 0; }
.muted { color: var(--c-muted); }
.lead { font-size: var(--fs-2); color: var(--c-muted); max-width: 60ch; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--sp-4); top: var(--sp-4); z-index: 100; background: #fff; padding: var(--sp-2) var(--sp-3); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 44px; padding: 0 var(--sp-5); border-radius: var(--radius);
  border: 1px solid transparent; font: 500 var(--fs-1)/1 var(--font);
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--c-primary); color: var(--c-primary-ink); }
.btn--primary:hover { background: var(--c-primary-hover); color: var(--c-primary-ink); }
.btn--ghost { border-color: currentColor; color: var(--c-primary); background: transparent; }
.btn--ghost:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.btn--light { background: #fff; color: var(--c-brand); }
.link-more { font-weight: 500; text-decoration: none; white-space: nowrap; }
.link-more::after { content: " \2192"; }
.ext::after { content: " \2197"; font-size: .85em; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 94%); backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-line); }
.site-header__row { display: flex; align-items: center; gap: var(--sp-5); min-height: 68px; }
.logo { display: flex; flex-direction: column; text-decoration: none; color: var(--c-brand); line-height: 1.15; min-width: 0; }
.logo img { height: 34px; width: auto; }
.logo__name { font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; }
.logo__tag { font-size: .78rem; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--c-text); text-decoration: none; font-weight: 500; padding: var(--sp-2) 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.nav-toggle { display: none; margin-left: auto; min-height: 40px; padding: 0 var(--sp-4); border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; font: inherit; cursor: pointer; }
.site-header__cta { flex: none; }
.site-header__phone { flex: none; font-weight: 600; color: var(--c-text); text-decoration: none; white-space: nowrap; }
@media (max-width: 1260px) { .site-header__phone { display: none; } }

/* Бургер общей шапки: обычные три полоски; при наведении средняя шевелится; открыто — крестик.
   Слово «Меню»/«Закрыть» остаётся для экранного диктора, глазами не видно. */
.site-header__row .nav-toggle { width: 44px; height: 44px; min-height: 0; padding: 0; justify-content: center; border: 0; border-radius: 10px;
  background: transparent; color: var(--c-text); position: relative; z-index: 2; flex: none; }
.site-header__row .nav-toggle:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.nav-toggle__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-burger { position: relative; display: block; width: 24px; height: 18px; flex: none; }
.nav-burger i { position: absolute; left: 0; width: 24px; height: 2px; border-radius: 2px; background: currentColor;
  transition: top .4s cubic-bezier(.7, 0, .2, 1), transform .4s cubic-bezier(.7, 0, .2, 1), opacity .2s, background .2s; }
.nav-burger i:nth-child(1) { top: 0; }
.nav-burger i:nth-child(2) { top: 8px; transform-origin: left center; }
.nav-burger i:nth-child(3) { top: 16px; }
.nav-toggle:hover .nav-burger i:nth-child(2) { background: var(--c-accent, currentColor); animation: burger-wiggle 1s ease-in-out infinite; }
@keyframes burger-wiggle {
  0%, 100% { transform: none; }
  25% { transform: translateX(4px) scaleX(.7); }
  50% { transform: translateX(-2px) scaleX(.95); }
  75% { transform: translateX(2px) scaleX(.8); }
}
.nav-toggle[aria-expanded="true"] .nav-burger i:nth-child(1) { top: 8px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-burger i:nth-child(2) { opacity: 0; animation: none; }
.nav-toggle[aria-expanded="true"] .nav-burger i:nth-child(3) { top: 8px; transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .nav-toggle:hover .nav-burger i:nth-child(2) { animation: none; } }
/* подпись под логотипом не залезает на бургер — обрезается многоточием */
.site-header__row .logo__words { min-width: 0; }
.site-nav__extra { display: none; }
/* подменю общей шапки (robomatic.ru): на широком экране — выпадает по наведению и с клавиатуры */
.site-header__row .site-nav li.has-sub { position: relative; }
.site-header__row .site-nav .site-nav__sub { display: none; flex-direction: column; gap: 0; flex-wrap: nowrap; position: absolute; top: 100%; left: -14px; z-index: 5; min-width: 260px; max-width: 360px; margin: 0; padding: 8px 0;
  list-style: none; background: #fff; border: 1px solid var(--c-line); border-radius: 10px; box-shadow: 0 18px 40px rgb(20 26 43 / 14%); }
.site-header__row .site-nav li.has-sub:hover > .site-nav__sub, .site-header__row .site-nav li.has-sub:focus-within > .site-nav__sub { display: flex; }
.site-header__row .site-nav .site-nav__sub a { display: block; padding: 7px 16px; border: 0; font-weight: 400; font-size: .92rem; line-height: 1.3; white-space: normal; color: var(--c-text); }
.site-header__row .site-nav .site-nav__sub a:hover, .site-header__row .site-nav .site-nav__sub a[aria-current] { background: var(--c-surface); color: var(--c-primary); }

@media (max-width: 960px) {
  .site-header__cta { display: none; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--c-line); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: var(--sp-3) var(--gutter) var(--sp-5); }
  .site-nav a { display: block; padding: var(--sp-3) 0; border: 0; }
}

/* Первый экран */
.hero { position: relative; padding: var(--sp-8) 0 var(--sp-7); background: linear-gradient(135deg, var(--c-dark), var(--c-brand)); color: #fff; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { color: rgb(255 255 255 / 82%); font-size: var(--fs-2); max-width: 62ch; }
.hero__kicker { display: inline-block; margin-bottom: var(--sp-4); font-size: var(--fs-0); text-transform: uppercase; letter-spacing: .12em; color: var(--c-accent); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.hero__facts { display: flex; flex-wrap: wrap; gap: var(--sp-6); margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid rgb(255 255 255 / 15%); }
.hero__facts b { display: block; font-size: var(--fs-4); color: #fff; }
.hero__facts span { font-size: var(--fs-0); color: rgb(255 255 255 / 70%); }

/* Сетка карточек */
.grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--c-bg);
  border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: var(--c-primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--c-surface); overflow: hidden; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: var(--sp-3); }
.card__media--cover img { object-fit: cover; padding: 0; }
.card__body { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4) var(--sp-5) var(--sp-5); flex: 1; }
.card__meta { font-size: var(--fs-0); color: var(--c-muted); }
.card__title { font-size: var(--fs-2); font-weight: 600; margin: 0; line-height: 1.3; }
.card__title a { color: var(--c-text); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__text { color: var(--c-muted); font-size: var(--fs-0); margin: 0; }
.card__foot { margin-top: auto; padding-top: var(--sp-2); font-size: var(--fs-0); color: var(--c-primary); font-weight: 500; }
.badge { display: inline-block; padding: 2px var(--sp-2); border-radius: 999px; background: var(--c-surface-2); color: var(--c-muted); font-size: .75rem; font-weight: 500; }
.badge--accent { background: var(--c-accent); color: #1b1b1b; }
.badge--draft { background: #fff3cd; color: #7a5a00; }

/* Плитки разделов */
.tiles { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); list-style: none; padding: 0; margin: 0; }
.tile { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; color: var(--c-text); background: var(--c-bg); }
.tile:hover { border-color: var(--c-primary); color: var(--c-primary); }
.tile small { color: var(--c-muted); }

/* Хлебные крошки, пагинация */
.crumbs { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: var(--sp-5) 0 0; margin: 0; font-size: var(--fs-0); color: var(--c-muted); }
.crumbs li + li::before { content: "/"; margin-right: var(--sp-2); color: var(--c-line); }
.crumbs a { color: var(--c-muted); text-decoration: none; }
.crumbs a:hover { color: var(--c-primary); }
.page-head { padding: var(--sp-5) 0 var(--sp-6); }
.page-head h1 { font-size: var(--fs-4); margin-bottom: var(--sp-3); }
.pager { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin-top: var(--sp-7); }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 var(--sp-3); border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; }
.pager [aria-current] { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* Карточка оборудования / проекта */
.detail { display: grid; gap: var(--sp-7); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; gap: var(--sp-5); } }
.gallery__main { aspect-ratio: 4 / 3; background: var(--c-surface); border-radius: var(--radius-lg); display: grid; place-items: center; overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); overflow-x: auto; padding-bottom: var(--sp-1); }
.gallery__thumbs button { flex: none; width: 72px; height: 56px; padding: 2px; border: 1px solid var(--c-line); border-radius: 6px; background: #fff; cursor: pointer; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--c-primary); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.specs { width: 100%; border-collapse: collapse; font-size: var(--fs-0); }
.specs th, .specs td { padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.specs th { font-weight: 400; color: var(--c-muted); width: 55%; }
.box { padding: var(--sp-5); border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: var(--c-surface); }
.box + .box { margin-top: var(--sp-4); }
.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.docs a::before { content: "PDF "; font-size: .7rem; font-weight: 700; color: var(--c-error); }
.links { list-style: none; padding: 0; margin: 0 0 var(--sp-3); display: grid; gap: var(--sp-1); }
.links a { position: relative; z-index: 1; }

/* Текст из Markdown */
.prose { max-width: 75ch; }
.prose img { border-radius: var(--radius); margin: var(--sp-4) 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--fs-0); margin: var(--sp-4) 0; }
.prose td, .prose th { border: 1px solid var(--c-line); padding: var(--sp-2); }
.prose h2 { font-size: var(--fs-3); margin-top: var(--sp-6); }
.prose h3 { font-size: var(--fs-2); margin-top: var(--sp-5); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose :is(h2, h3)[id] { scroll-margin-top: 112px; }
/* фото с подписью; .figures — два в ряд */
.prose figure { margin: var(--sp-6) 0; padding: var(--sp-3); background: var(--c-surface); border-radius: var(--radius-lg); }
/* не растягиваем фото больше родного размера: со старых сайтов они небольшие */
.prose figure > img { display: block; width: auto; max-width: 100%; height: auto; max-height: 560px; margin: 0 auto; border-radius: var(--radius); background: #fff; }
.prose figcaption { margin: var(--sp-3) var(--sp-1) 0; font-size: var(--fs-0); color: var(--c-muted); line-height: 1.45; }
.prose .figures { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; margin: var(--sp-6) 0; }
.prose .figures figure { margin: 0; }
.prose .figures figure > img { width: 100%; aspect-ratio: 4 / 5; max-height: none; object-fit: contain; }
@media (max-width: 560px) { .prose .figures { grid-template-columns: 1fr; } }
.prose svg { display: block; width: 100%; height: auto; }
/* таблицы с данными: шапка, зебра, на телефоне прокрутка вбок */
.prose .table-wrap { overflow-x: auto; margin: var(--sp-5) 0; border: 1px solid var(--c-line); border-radius: var(--radius); }
.prose .table-wrap table { margin: 0; min-width: 560px; border: 0; }
.prose .table-wrap tr > :first-child { border-left: 0; }
.prose .table-wrap tr > :last-child { border-right: 0; }
.prose .table-wrap thead th { border-top: 0; }
.prose .table-wrap tbody tr:last-child td { border-bottom: 0; }
.prose thead th { background: var(--c-surface); font-weight: 600; text-align: left; }
.prose td, .prose th { padding: var(--sp-2) var(--sp-3); vertical-align: top; }
.prose tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--c-surface) 45%, #fff); }
/* «Коротко»: ключевые цифры статьи */
.keyfacts { margin: var(--sp-6) 0; padding: var(--sp-5); border-left: 4px solid var(--c-primary); background: var(--c-surface); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.keyfacts > p:first-child { margin: 0 0 var(--sp-4); font-size: var(--fs-0); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary); }
.prose .keyfacts ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4) var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.keyfacts li { font-size: var(--fs-0); color: var(--c-muted); line-height: 1.45; }
.keyfacts li strong:first-child { display: block; margin-bottom: 2px; font-size: var(--fs-3); line-height: 1.15; color: var(--c-text); }

/* Ход инженерной мысли */
.story { counter-reset: step; display: grid; gap: var(--sp-4); max-width: 80ch; }
.story__step { position: relative; padding: var(--sp-4) var(--sp-5) var(--sp-4) 64px; border-left: 2px solid var(--c-line); }
.story__step::before { counter-increment: step; content: counter(step); position: absolute; left: -17px; top: var(--sp-4); width: 32px; height: 32px; border-radius: 50%; background: var(--c-primary); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: var(--fs-0); }
.story__step h3 { font-size: var(--fs-2); margin-bottom: var(--sp-2); }

/* Заявка */
.lead-section { background: var(--c-surface); padding: var(--sp-7) 0; border-top: 1px solid var(--c-line); }
.lead-form { display: grid; gap: var(--sp-5); grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
@media (max-width: 860px) { .lead-form { grid-template-columns: 1fr; } }
.lead-form__fields { display: grid; gap: var(--sp-3); grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .lead-form__fields { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--sp-1); }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: var(--fs-0); color: var(--c-muted); }
.field input, .field textarea {
  width: 100%; min-height: 44px; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--c-line);
  border-radius: var(--radius); font: inherit; background: #fff; color: var(--c-text);
}
.field input:focus, .field textarea:focus { border-color: var(--c-primary); outline: none; box-shadow: 0 0 0 3px rgb(0 86 156 / 15%); }
.field__error { color: var(--c-error); font-size: var(--fs-0); min-height: 0; }
.check { display: flex; gap: var(--sp-2); align-items: flex-start; font-size: var(--fs-0); color: var(--c-muted); }
.check input { margin: 2px 0 0; width: 18px; height: 18px; min-height: 0; padding: 0; flex: none; accent-color: var(--c-primary); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 500; margin: 0; }
.form-status.is-ok { color: var(--c-ok); }
.form-status.is-error { color: var(--c-error); }
.messages { list-style: none; margin: var(--sp-4) auto 0; padding: 0 var(--gutter); max-width: calc(var(--container) + 2 * var(--gutter)); }
.messages li { padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); background: #e7f5ec; color: var(--c-ok); font-weight: 500; }

/* Подвал */
.site-footer { background: var(--c-dark); color: var(--c-dark-text); padding: var(--sp-7) 0 var(--sp-5); font-size: var(--fs-0); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; gap: var(--sp-6); grid-template-columns: 1.2fr 2fr; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; } }
.network { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); list-style: none; padding: 0; margin: 0; }
/* вся карточка — ссылка на сайт */
.network li { display: flex; }
.network a { flex: 1; display: block; padding: var(--sp-3) var(--sp-4); border: 1px solid rgb(255 255 255 / 12%); border-radius: var(--radius);
  color: inherit; text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
.network a:hover, .network a:focus-visible { text-decoration: none; color: inherit; border-color: rgb(255 255 255 / 40%); background: rgb(255 255 255 / 5%); transform: translateY(-2px); }
.network a[aria-current] { border-color: var(--c-accent); }
.network b { display: block; color: #fff; font-weight: 500; }
.network small { display: block; color: rgb(255 255 255 / 60%); margin-top: 2px; }
.footer__bottom { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid rgb(255 255 255 / 12%); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); color: rgb(255 255 255 / 55%); }

/* Схема линии (розлив.рф) */
.line { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: var(--sp-5); align-items: center; }
@media (max-width: 860px) { .line { grid-template-columns: 1fr; } }
.line__inputs { display: grid; gap: var(--sp-3); }
.line__input { padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); border: 1px dashed rgb(255 255 255 / 35%); font-size: var(--fs-0); }
.line__input b { display: block; color: #fff; font-size: var(--fs-1); }
.line__input a { color: inherit; }
.line__chain { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; margin: 0; counter-reset: st; }
.line__chain li { flex: 1 1 140px; display: flex; }
.stage {
  position: relative; flex: 1; display: flex; flex-direction: column; gap: var(--sp-1); min-height: 104px;
  padding: var(--sp-4); border-radius: var(--radius); text-decoration: none; color: #fff;
  background: rgb(255 255 255 / 7%); border: 1px solid rgb(255 255 255 / 14%); transition: background .15s, border-color .15s;
}
.stage::before { counter-increment: st; content: counter(st, decimal-leading-zero); font: 600 .75rem/1 var(--font-mono); color: var(--c-accent); }
.stage b { font-weight: 600; line-height: 1.25; }
.stage small { color: rgb(255 255 255 / 60%); margin-top: auto; }
.stage:hover, .stage.is-active { background: rgb(255 255 255 / 14%); border-color: var(--c-accent); color: #fff; }
.line__out { margin-top: var(--sp-3); font-size: var(--fs-0); color: rgb(255 255 255 / 70%); }
.line__panel { margin-top: var(--sp-5); min-height: 3.2em; color: rgb(255 255 255 / 85%); max-width: 70ch; }
.line__panel b { color: #fff; }
.line__support { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.line__support .stage { flex: 1 1 260px; min-height: 0; }
.line__support .stage::before { content: "+"; }

.motives { counter-reset: m; }
.motive { padding: var(--sp-5); border-radius: var(--radius-lg); border: 1px solid var(--c-line); background: var(--c-bg); text-decoration: none; color: var(--c-text); display: flex; flex-direction: column; gap: var(--sp-2); }
.motive::before { counter-increment: m; content: counter(m); font: 700 var(--fs-4)/1 var(--font); color: var(--c-primary); }
.motive:hover { border-color: var(--c-primary); }

/* alfamatic.ru: главная */
.cat-card .card__media { aspect-ratio: 16 / 10; }
.cat-card .card__media img { object-fit: contain; }
.advantages { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.advantages li { display: grid; grid-template-columns: 48px 1fr; column-gap: var(--sp-4); align-items: start; }
.advantages img { grid-row: span 2; width: 48px; height: 48px; object-fit: contain; }
.advantages b { font-size: var(--fs-2); line-height: 1.3; }
.advantages span { color: var(--c-muted); font-size: var(--fs-0); }
.two-cols { display: grid; gap: var(--sp-7); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; }
.feed li { display: grid; gap: 2px; padding: var(--sp-3) 0; border-bottom: 1px solid var(--c-line); }
.feed a { color: var(--c-text); text-decoration: none; font-weight: 500; }
.feed a:hover { color: var(--c-primary); }

.videos { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

/* Маленькие картинки со старых сайтов не растягиваем: лучше мельче, но резко */
.gallery__main img, .card__media img { object-fit: scale-down; }
.card__media--cover img { object-fit: cover; }

/* подразделы каталога карточками с картинкой */
.subcats { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin-bottom: var(--sp-7); }
.subcat { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-4); border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; color: var(--c-text); background: var(--c-bg); transition: border-color .15s, box-shadow .2s, transform .2s; }
.subcat:hover { border-color: var(--c-primary); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--c-primary); }
.subcat__img { height: 110px; display: grid; place-items: center; }
.subcat__img img { max-height: 110px; max-width: 100%; object-fit: contain; }
.subcat__name { font-weight: 500; line-height: 1.3; }
/* SEO-тексты старого сайта — в конце раздела; их табличная вёрстка без рамок */
.seo-text { margin-top: var(--sp-8); padding-top: var(--sp-6); border-top: 1px solid var(--c-line); color: #3d4454; max-width: none; }
.seo-text table, .seo-text td, .seo-text th { border: 0 !important; }
.seo-text td { padding: var(--sp-2) var(--sp-4) var(--sp-2) 0; vertical-align: top; }

.notice { padding: var(--sp-4) var(--sp-5); border-left: 4px solid var(--c-accent); background: #fff8e8; border-radius: 0 var(--radius) var(--radius) 0; }
.notice > :last-child { margin-bottom: 0; }
.notice--cta { margin: var(--sp-6) 0; padding: var(--sp-5); border-left-color: var(--c-primary); background: var(--c-surface); }
.notice--cta p:last-child { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.prose .notice--cta .btn { text-decoration: none; }
.prose .notice--cta .btn--primary { color: var(--c-primary-ink); }
.empty { padding: var(--sp-6); text-align: center; color: var(--c-muted); border: 1px dashed var(--c-line); border-radius: var(--radius-lg); }
