@charset "utf-8";
/* Общие блоки всех сайтов: заголовки секций с линией, проекты-фотоплитки, карточки новостей и статей,
   отзывы, логотипы партнёров, появление блоков при прокрутке. Цвета — из tokens.css сайта. */

:root { --c-soft: #f6f7f9; --ease: cubic-bezier(.2, .7, .2, 1); }
.btn--outline { border: 1px solid var(--c-primary); color: var(--c-primary); background: transparent; }
.btn--outline:hover { background: var(--c-primary); color: #fff; }

/* ---------- заголовки секций ---------- */
.h-line { position: relative; padding-bottom: var(--sp-4); margin-bottom: var(--sp-5); font-weight: 500; }
.h-line::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; background: var(--c-primary); }
.section__head .h-line { margin-bottom: 0; }
.h-line--light { color: #fff; }
.section--soft { background: var(--c-soft); }
.section-lead { color: var(--c-muted); max-width: 90ch; margin-bottom: var(--sp-6); }
.link-more { color: var(--c-primary); font-size: .95rem; }
.link-more--light { color: #9cc7ff; }

/* ---------- проекты: большие фотоплитки ---------- */
.projects-band { background: #10203a; }
.project-tiles { display: grid; gap: var(--sp-4); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--sp-1); min-height: 260px; padding: var(--sp-5); border-radius: 6px; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; background: #22304a; }
.project-tile:first-child { grid-column: span 2; grid-row: span 2; min-height: 536px; }
.project-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.project-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 35%, rgb(6 14 30 / 85%)); }
.project-tile__meta { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #9cc7ff; }
.project-tile__title { font-size: var(--fs-2); font-weight: 500; line-height: 1.3; }
.project-tile:first-child .project-tile__title { font-size: var(--fs-3); }
.project-tile:hover img { transform: scale(1.06); }
@media (max-width: 960px) { .project-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .project-tile:first-child { min-height: 340px; grid-row: auto; } }
@media (max-width: 560px) { .project-tiles { grid-template-columns: 1fr; } .project-tile:first-child { grid-column: auto; } }

/* ---------- новости, статьи ---------- */
.news-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.news-card { display: flex; flex-direction: column; gap: var(--sp-2); color: var(--c-text); text-decoration: none; background: #fff; border: 1px solid var(--c-line); transition: box-shadow .25s, transform .25s var(--ease); }
.news-card:hover { box-shadow: 0 12px 36px rgb(20 26 43 / 12%); transform: translateY(-3px); }
.news-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-soft); }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-card__img img { transform: scale(1.05); }
.news-card__tag { padding: 0 var(--sp-4); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-primary); }
.news-card__title { padding: 0 var(--sp-4); font-weight: 500; line-height: 1.35; }
.news-card__date { margin-top: auto; padding: 0 var(--sp-4) var(--sp-4); font-size: .82rem; color: var(--c-muted); }
.news-card__title:last-child { padding-bottom: var(--sp-4); }
@media (max-width: 960px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- отзывы ---------- */
.reviews { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.review { margin: 0; padding: var(--sp-6); background: var(--c-soft); border-radius: 6px; display: flex; flex-direction: column; gap: var(--sp-5); position: relative; }
.review::before { content: "\201C"; position: absolute; top: 4px; right: var(--sp-5); font: 700 72px/1 Georgia, serif; color: var(--c-primary); opacity: .18; }
.review blockquote { margin: 0; color: #3d4454; line-height: 1.65; }
.review figcaption { display: flex; gap: var(--sp-4); align-items: center; margin-top: auto; }
.review img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: #fff; }
.review b { display: block; }
.review small { color: var(--c-muted); font-size: .85rem; }

/* ---------- партнёры ---------- */
.partners { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); align-items: center; }
.partners li { height: 72px; display: grid; place-items: center; padding: var(--sp-3); }
.partners img { max-height: 56px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.partners li:hover img { filter: none; opacity: 1; }

/* ---------- появление блоков при прокрутке ---------- */
.js [data-reveal] > .container > *, .js [data-reveal] .photo-tile, .js [data-reveal] .catalog-card, .js [data-reveal] .news-card,
.js [data-reveal] .project-tile, .js [data-reveal] .review, .js [data-reveal] .advantages li {
  opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-visible > .container > *, .js [data-reveal].is-visible .photo-tile, .js [data-reveal].is-visible .catalog-card,
.js [data-reveal].is-visible .news-card, .js [data-reveal].is-visible .project-tile, .js [data-reveal].is-visible .review,
.js [data-reveal].is-visible .advantages li { opacity: 1; transform: none; }


@media (prefers-reduced-motion: reduce) {
  .news-card *, .project-tile *, [data-reveal] *, .scheme * { transition: none !important; animation: none !important; }
  .js [data-reveal] * { opacity: 1 !important; transform: none !important; }
}

/* фото и документы страницы / новости */
.attach-gallery { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); margin: var(--sp-6) 0; }
.attach-gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--c-surface); }
.attach-gallery img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.attach-gallery a:hover img { transform: scale(1.04); }
.attach-docs { margin-top: var(--sp-5); }

/* ---------- статья: раскладка, оглавление, разделы, соседи ---------- */
.entry__meta a { color: inherit; }
/* обложка в родном размере (у старых статей она бывает 600–700 px): не растягиваем, ставим по центру на подложке */
.entry__hero { display: flex; justify-content: center; margin: 0 0 var(--sp-7); background: var(--c-surface); border-radius: var(--radius-lg); overflow: hidden; }
.entry__hero img { width: auto; max-width: 100%; height: auto; max-height: 560px; }
.entry__layout { display: grid; gap: var(--sp-7); grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
.entry__layout > :only-child { grid-column: 1 / -1; }
.entry__aside { position: sticky; top: 124px; display: grid; gap: var(--sp-5); }
/* абзацы — по ширине чтения, фото, таблицы и схемы — во всю колонку */
.entry__body .prose { max-width: none; }
.entry__body .prose > :not(figure, .figures, .table-wrap, .keyfacts, .notice) { max-width: 75ch; }
.toc, .side-list { padding: var(--sp-4) var(--sp-5); border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: #fff; }
.toc__title, .side-list__title { margin: 0 0 var(--sp-3); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: var(--sp-2); font-size: var(--fs-0); line-height: 1.35; }
.toc a { color: var(--c-text); text-decoration: none; }
.toc a:hover { color: var(--c-primary); }
.toc li::marker { color: var(--c-muted); font-variant-numeric: tabular-nums; }
.side-list ul { list-style: none; margin: 0; padding: 0; font-size: var(--fs-0); }
.side-list a { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) 0; border-top: 1px solid var(--c-line); color: var(--c-text); text-decoration: none; }
.side-list li:first-child a { border-top: 0; }
.side-list a:hover, .side-list li[aria-current] a { color: var(--c-primary); }
.side-list li[aria-current] a { font-weight: 600; }
.side-list__n { color: var(--c-muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.entry__nav { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--sp-7); }
.entry__nav-link { display: grid; gap: var(--sp-1); align-content: start; padding: var(--sp-4) var(--sp-5); border: 1px solid var(--c-line); border-radius: var(--radius-lg); color: var(--c-text); text-decoration: none; font-weight: 500; line-height: 1.35; transition: border-color .15s, color .15s; }
.entry__nav-link:hover { border-color: var(--c-primary); color: var(--c-primary); }
.entry__nav-link small { color: var(--c-muted); font-weight: 400; }
.entry__nav-link--next { grid-column: 2; text-align: right; }
@media (max-width: 1024px) {
  .entry__layout { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .entry__aside { position: static; }
  .toc { display: none; }
}
@media (max-width: 560px) {
  .entry__nav { grid-template-columns: minmax(0, 1fr); }
  .entry__nav-link--next { grid-column: auto; }
}

/* ---------- схема в статье: сварочная ячейка из двух роботов ---------- */
.prose .scheme { margin: var(--sp-6) 0; padding: var(--sp-5) var(--sp-4) var(--sp-4); background: var(--c-surface); border-radius: var(--radius-lg); }
.prose .scheme svg { max-width: 720px; margin: 0 auto; font: 500 15px/1 var(--font); overflow: visible; }
.prose .scheme figcaption { max-width: 720px; margin: var(--sp-3) auto 0; }
.cell__floor { stroke: var(--c-line); stroke-width: 2; }
.cell__base { fill: var(--c-surface-2); stroke: #8a93a3; stroke-width: 2; }
.cell__shoulder { fill: #fff; stroke: var(--c-dark); stroke-width: 3; }
.cell__link { fill: none; stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
.cell__link--weld { stroke: var(--c-primary); }
.cell__link--hand { stroke: #7b8496; }
.cell__joint { fill: #fff; stroke: var(--c-dark); stroke-width: 3; }
.cell__torch { stroke: var(--c-dark); stroke-width: 6; stroke-linecap: round; }
.cell__spark circle { fill: var(--c-accent); }
.cell__part { fill: var(--c-dark); }
.cell__seam { stroke: var(--c-accent); stroke-width: 3; stroke-dasharray: 2 6; stroke-linecap: round; }
.cell__grip { fill: none; stroke: #7b8496; stroke-width: 6; stroke-linejoin: round; }
.cell__ctrl { fill: #fff; stroke: var(--c-primary); stroke-width: 2; }
.cell__label { fill: var(--c-muted); }
.cell__label--accent { fill: var(--c-primary); font-weight: 600; }
.cell__track { fill: none; stroke: var(--c-primary); stroke-width: 3; stroke-dasharray: 8 8; }
/* оба робота двигаются в одном 4-секундном цикле: заготовка и горелка поднимаются и опускаются вместе,
   горелка при этом скользит вдоль шва — это и есть «гармонизация». Точка вращения — плечо (style в SVG). */
.cell__arm--weld { animation: cell-weld 4s ease-in-out infinite; }
.cell__arm--hand { animation: cell-hand 4s ease-in-out infinite; }
.cell__spark { transform-box: fill-box; transform-origin: center; animation: cell-spark .7s ease-in-out infinite alternate; }
.cell__track { animation: cell-track 1.2s linear infinite; }
@keyframes cell-weld { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes cell-hand { 0%, 100% { transform: rotate(2.16deg); } 50% { transform: rotate(-2.16deg); } }
@keyframes cell-spark { from { opacity: .5; transform: scale(.75); } to { opacity: 1; transform: scale(1.25); } }
@keyframes cell-track { to { stroke-dashoffset: -16; } }
@media (max-width: 560px) { .prose .scheme { padding: var(--sp-3) var(--sp-2); } .prose .scheme svg { font-size: 22px; } }
