/* ТОМЕЗ — стили сайта поверх tokens.css + components.css (дизайн-система).
   Правила: прямые углы, без теней, глубина — контраст плоскостей; одна фирменная диагональ. */

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --gutter: var(--space-5);
  --section-y: var(--space-9);
  color-scheme: light;
}
@media (max-width: 760px) { :root { --gutter: var(--space-4); --section-y: var(--space-8); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-size: 16px; line-height: 26px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
::selection { background: var(--orange-strong); color: var(--on-dark); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.dark :focus-visible, .tz-hero :focus-visible, .site-footer :focus-visible { outline-color: var(--lime); }
html { scrollbar-color: var(--line-strong) var(--surface-alt); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border: 3px solid var(--surface-alt); }
.num, .tz-stat-value, .tz-spec-row dd { font-variant-numeric: tabular-nums lining-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--space-4); top: -60px; z-index: 100; background: var(--ink); color: var(--surface); padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: var(--space-4); }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--surface-alt); }
.dark { background: var(--surface-dark); color: var(--on-dark); }
.dark .tz-st-lead, .dark .muted { color: var(--on-dark-muted); }
.dark .tz-st-accent { color: var(--orange-on-dark); }
.muted { color: var(--ink-muted); }
.lead { font-size: 18px; line-height: 28px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-5); margin-bottom: var(--space-7); flex-wrap: wrap; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.tz-btn { transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .16s var(--ease-out); }
.tz-btn:active:not([disabled]) { transform: scale(0.97); }
.tz-btn .icon { width: 18px; height: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s var(--ease-out); }
@media (hover: hover) { .link-arrow:hover .icon { transform: translateX(4px); } }
.dark .link-arrow { color: var(--on-dark); }

/* ── Header ─────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; }
.site-header .tz-header { height: 80px; }
.site-header .tz-logotab { transition: transform .25s var(--ease-out); transform-origin: top left; }
.site-header.is-compact .tz-logotab { transform: scale(.72); }
.tz-nav { justify-content: center; gap: var(--space-6); }
.tz-nav a { transition: border-color .15s ease; }
.header-cta { flex: none; }
.burger { display: none; width: 48px; height: 48px; border: 0; background: transparent; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; margin-left: auto; }
.burger .icon { width: 26px; height: 26px; }
.header-phone-icon { display: none; }
@media (max-width: 1180px) {
  .tz-nav { gap: var(--space-4); }
  .tz-nav a { font-size: 13px; }
  .header-cta { display: none; }
}
@media (max-width: 960px) {
  .tz-nav, .tz-header-contact { display: none; }
  .burger { display: inline-flex; }
  .header-phone-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; color: var(--ink); margin-left: auto; }
  .burger { margin-left: 0; }
  .site-header .tz-header { height: 64px; }
  .site-header .tz-logotab { width: 132px; padding: 12px 12px 30px; }
  .site-header .tz-header-spacer { width: 132px; }
  .site-header.is-compact .tz-logotab { transform: scale(.8); }
}
.mobile-nav { position: fixed; inset: 64px 0 0 0; z-index: 49; background: var(--surface-dark); color: var(--on-dark); padding: var(--space-7) var(--gutter); display: flex; flex-direction: column; gap: var(--space-2);
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s var(--ease-out), transform .25s var(--ease-out), visibility 0s .25s; }
.mobile-nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .2s var(--ease-out), transform .25s var(--ease-out); }
.mobile-nav a.mn-link { font-size: 22px; line-height: 28px; font-weight: 700; text-transform: uppercase; text-decoration: none; padding: var(--space-3) 0; border-bottom: 1px solid #2c3236; }
.mobile-nav .mn-phone { margin-top: auto; font-size: 24px; font-weight: 700; text-decoration: none; }
.mobile-nav .tz-btn { margin-top: var(--space-4); }

/* ── Hero ─────────────────────────────────────────── */
.tz-hero-inner { padding-top: 152px; padding-bottom: 260px; }
.tz-hero-title { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -0.01em; max-width: 760px; text-wrap: balance; }
.tz-hero-photo { width: 66%; }
.tz-hero-band { height: 120px; }
.tz-hero-band path { fill: var(--orange); }
.hero-facts { position: absolute; left: 0; right: 0; bottom: 84px; z-index: 2; }
.hero-facts .wrap { display: flex; justify-content: flex-end; gap: var(--space-7); padding-bottom: 22px; }
.hero-fact { color: var(--on-dark); }
.hero-fact b { display: block; font-size: 32px; line-height: 36px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-fact span { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--on-dark-muted); }
.hero-fact { border-top: 2px solid var(--orange); padding-top: var(--space-3); min-width: 140px; }
@media (max-width: 960px) {
  .tz-hero-photo { width: 100%; opacity: .45; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 30%, transparent 100%); }
  .tz-hero-inner { padding-top: 96px; padding-bottom: 176px; }
  .hero-facts .wrap { justify-content: space-between; gap: var(--space-4); }
  .hero-fact b { font-size: 24px; line-height: 28px; }
  .hero-fact span { font-size: 11px; line-height: 14px; }
  .tz-hero-mark { width: 380px; }
}
@media (max-width: 420px) { .hero-fact:nth-child(3) { display: none; } }
/* Авторский момент: диагональ «въезжает» при загрузке */
@media (prefers-reduced-motion: no-preference) {
  .js .tz-hero-band { animation: band-in .9s var(--ease-in-out) .15s both; }
  .js .hero-facts .hero-fact { animation: rise .6s var(--ease-out) both; }
  .js .hero-facts .hero-fact:nth-child(1) { animation-delay: .6s; }
  .js .hero-facts .hero-fact:nth-child(2) { animation-delay: .66s; }
  .js .hero-facts .hero-fact:nth-child(3) { animation-delay: .72s; }
  .js .tz-hero-photo { animation: photo-in 1.2s var(--ease-out) both; }
}
@keyframes band-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes photo-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

/* ── Завод в цифрах ─────────────────────────────── */
.capacity { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-8); align-items: start; }
.capacity-text p { margin: var(--space-5) 0 0; max-width: 46ch; }
.capacity-text strong { font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.stat-grid .tz-stat { padding: var(--space-5) var(--space-4) var(--space-6) 0; border-bottom: 1px solid var(--line); min-width: 0; }
.stat-grid .tz-stat:nth-child(4n+1) { padding-left: 0; }
.stat-grid .tz-stat-value { font-size: clamp(32px, 3.4vw, 44px); line-height: 1; color: var(--orange-text); }
.stat-grid .tz-stat-value .pre { font-size: .6em; vertical-align: .35em; margin-right: .12em; }
.stat-grid .tz-stat-unit { font-size: .5em; margin-left: .1em; }
.stat-grid .tz-stat-label { color: var(--ink-muted); }
@media (max-width: 1080px) { .capacity { grid-template-columns: 1fr; gap: var(--space-7); } }
@media (max-width: 640px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Направления: обложки как развороты буклета ─── */
.directions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--surface-dark); }
.dir { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 560px; padding: var(--space-6); color: var(--on-dark); text-decoration: none; overflow: hidden; isolation: isolate; }
.dir-img { position: absolute; inset: 0; z-index: -2; }
.dir-img img { width: 100%; height: 100%; object-fit: cover; }
.dir-img .color { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path .6s var(--ease-in-out); }
.dir-img .mono { filter: grayscale(1) contrast(1.05); }
.dir::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(26,29,31,.15) 0%, rgba(26,29,31,.25) 40%, rgba(26,29,31,.92) 78%); }
.dir-plate { position: relative; background: var(--orange); margin: 0 calc(var(--space-6) * -1) calc(var(--space-6) * -1); padding: var(--space-7) var(--space-6) var(--space-6);
  clip-path: polygon(0 34px, 100% 0, 100% 100%, 0 100%); }
.dir-title { margin: 0; font-size: 28px; line-height: 32px; font-weight: 700; text-transform: uppercase; }
.dir-models { margin: var(--space-3) 0 0; font-size: 15px; line-height: 22px; font-weight: 600; }
.dir-count { position: absolute; top: var(--space-6); left: var(--space-6); font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--surface-dark); padding: 8px 12px; }
.dir .link-arrow { margin-top: var(--space-4); color: var(--on-dark); }
@media (hover: hover) {
  .dir:hover .dir-img .color { clip-path: inset(0 0 0 0); }
  .dir:hover .link-arrow .icon { transform: translateX(4px); }
}
@media (max-width: 960px) { .directions { grid-template-columns: 1fr; } .dir { min-height: 420px; } }

/* ── МКДУ: флагман, переключатель сезонов ─────── */
.flagship { display: grid; grid-template-columns: 5fr 7fr; gap: 0; align-items: stretch; }
.flag-plate { background: var(--orange); color: var(--on-dark); padding: var(--space-8) var(--space-7) var(--space-8) 0; position: relative; }
.flag-plate::before { content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: 50vw; background: var(--orange); }
.flag-plate::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 90px; background: var(--orange); clip-path: polygon(0 0, 100% 0, 0 100%); }
.flag-plate h2 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; font-weight: 700; text-transform: uppercase; text-wrap: balance; }
.flag-plate h2 span { display: block; font-size: 1.5em; line-height: 1; margin-top: var(--space-3); letter-spacing: -0.01em; }
.flag-plate p { margin: var(--space-5) 0 0; font-size: 19px; line-height: 28px; font-weight: 700; }
.flag-plate .chassis { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.flag-plate .chassis span { border: 2px solid var(--on-dark); padding: 6px 12px; font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: .03em; }
.flag-body { padding: var(--space-8) 0 var(--space-8) calc(var(--space-7) + 90px); }
.season-switch { display: inline-flex; border: 2px solid var(--on-dark); margin-bottom: var(--space-6); }
.season-switch button { appearance: none; border: 0; background: transparent; color: var(--on-dark); height: 44px; padding: 0 24px; font: 700 14px/20px var(--font-sans); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.season-switch button[aria-selected="true"] { background: var(--on-dark); color: var(--surface-dark); }
.season-switch button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.season-panel[hidden] { display: none; }
.season-panel { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: start; }
.season-photo { aspect-ratio: 4 / 3; overflow: hidden; background: #24292c; }
.season-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) { .season-panel:not([hidden]) > * { animation: rise .45s var(--ease-out) both; } .season-panel:not([hidden]) > *:nth-child(2) { animation-delay: .06s; } }
.season-panel h3 { margin: 0 0 var(--space-4); font-size: 18px; line-height: 24px; text-transform: uppercase; }
.season-panel .tz-ml li { font-size: 15px; line-height: 24px; }
.eq-row { grid-column: 1 / -1; margin-top: var(--space-2); display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-4); }
.eq { margin: 0; }
.eq-img { aspect-ratio: 16 / 10; overflow: hidden; background: #24292c; }
.eq-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out); }
.eq figcaption { margin-top: var(--space-2); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--on-dark-muted); }
@media (max-width: 1080px) {
  .flagship { grid-template-columns: 1fr; }
  .flag-plate { padding: var(--space-7) 0; }
  .flag-plate::before { right: auto; left: calc(var(--gutter) * -1); width: calc(100% + var(--gutter) * 2); z-index: -1; }
  .flag-plate { isolation: isolate; }
  .flag-plate::after { display: none; }
  .flag-body { padding: var(--space-7) 0 var(--space-8); }
}
@media (max-width: 640px) { .season-panel { grid-template-columns: 1fr; } .season-switch { width: 100%; } .season-switch button { flex: 1; } }

/* ── Системы управления ──────────────────────── */
.sau-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); }
.sau { display: grid; grid-template-columns: 200px 1fr; gap: var(--space-5); align-items: start; padding-top: var(--space-5); border-top: 2px solid var(--ink); }
.sau-img { background: var(--surface); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: var(--space-3); }
.sau-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.sau h3 { margin: 0; font-size: 22px; line-height: 28px; text-transform: uppercase; }
.sau .screen { display: inline-block; margin: var(--space-2) 0 var(--space-4); font-size: 14px; font-weight: 700; color: var(--orange-text); }
.sau .tz-ml li { font-size: 15px; line-height: 24px; }
@media (max-width: 1080px) { .sau-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .sau { grid-template-columns: 1fr; } .sau-img { max-width: 220px; } }

/* ── Карточки ───────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 1080px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }
.tz-card-title { font-size: 20px; line-height: 26px; }
.tz-card-title span { display: block; font-size: 24px; line-height: 30px; margin-top: 2px; }
.tz-card-facts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: var(--space-2) 0 0; padding: var(--space-3) 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 13px; line-height: 18px; color: var(--ink); }
.tz-card-facts b { font-weight: 700; font-variant-numeric: tabular-nums; }
.tz-card-more { display: inline-flex; align-items: center; gap: var(--space-2); }
.tz-card-more .icon { width: 16px; height: 16px; transition: transform .2s var(--ease-out); }
.tz-card-media img { transition: transform .5s var(--ease-out); }
@media (hover: hover) { .tz-card:hover .tz-card-more .icon { transform: translateX(4px); } }
@media (hover: none) { .tz-card:hover .tz-card-media img { transform: none; } .tz-card:hover::after { width: 0; } }

/* ── Локализация ───────────────────────────── */
.local { position: relative; isolation: isolate; overflow: hidden; }
.local-bg { position: absolute; inset: 0; z-index: -1; }
.local-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.local-bg::after { content: ""; position: absolute; inset: 0; background: rgba(26, 29, 31, .88); }
.local-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.local .tz-ml li { font-size: 17px; line-height: 26px; padding-bottom: var(--space-4); border-bottom: 1px solid #343a3e; }
.local-quote { margin: var(--space-8) 0 0; padding-top: var(--space-6); border-top: 2px solid var(--orange); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; font-weight: 700; text-transform: uppercase; max-width: 24ch; text-wrap: balance; }
.local-quote span { color: var(--orange-on-dark); }
@media (max-width: 960px) { .local-grid { grid-template-columns: 1fr; gap: var(--space-6); } }

/* ── Разработки и история ──────────────────── */
.rd { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-8); align-items: start; }
.cycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.cycle li { padding: var(--space-5) var(--space-5) 0 0; }
.cycle li + li { padding-left: var(--space-5); border-left: 1px solid var(--line); }
.cycle b { display: block; font-size: 18px; line-height: 24px; text-transform: uppercase; }
.cycle p { margin: var(--space-2) 0 0; font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.timeline { margin-top: var(--space-8); display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 52px; height: 2px; background: var(--ink); }
.tl { position: relative; padding-right: var(--space-5); }
.tl-year { font-size: 40px; line-height: 40px; font-weight: 700; color: var(--orange-text); font-variant-numeric: tabular-nums; }
.tl-year small { font-size: 16px; color: var(--ink); margin-left: 4px; }
.tl::after { content: ""; position: absolute; left: 0; top: 46px; width: 6px; height: 14px; background: var(--orange); transform: skewX(var(--slant-bar)); }
.tl p { margin: var(--space-6) 0 0; font-size: 15px; line-height: 24px; }
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-7); }
.doc { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-5); background: var(--surface); border: 1px solid var(--line); }
.doc-badge { flex: none; width: 56px; height: 56px; background: var(--green); color: var(--on-dark); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.doc b { display: block; font-size: 15px; line-height: 22px; text-transform: uppercase; }
.doc span { display: block; margin-top: 4px; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
@media (max-width: 1080px) { .rd { grid-template-columns: 1fr; gap: var(--space-7); } }
@media (max-width: 760px) {
  .cycle { grid-template-columns: 1fr; } .cycle li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: var(--space-5); }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: var(--space-7); } .timeline::before { display: none; } .tl { border-top: 2px solid var(--ink); padding-top: var(--space-4); } .tl::after { display: none; } .tl p { margin-top: var(--space-3); }
  .docs { grid-template-columns: 1fr; }
}

/* ── Заявка ─────────────────────────────────── */
.lead-sec { background: var(--green); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.lead-sec .lion { position: absolute; right: -120px; bottom: -160px; width: 620px; opacity: .06; z-index: -1; pointer-events: none; }
.lead-grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-8); align-items: start; }
.lead-sec .tz-st-title { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; }
.lead-sec .tz-st-lead { color: #c9d1c2; }
.lead-contacts { margin-top: var(--space-7); display: grid; gap: var(--space-4); }
.lead-contacts a { display: inline-flex; align-items: center; gap: var(--space-3); font-size: 22px; line-height: 28px; font-weight: 700; text-decoration: none; }
.lead-contacts a.small-link { font-size: 17px; font-weight: 600; }
.lead-contacts .icon { color: var(--lime); }
@media (max-width: 960px) { .lead-grid { grid-template-columns: 1fr; gap: var(--space-7); } }

/* ── Форма ─────────────────────────────────── */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-5); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.field label .req { color: var(--orange-text); }
.on-color .field label .req, .dialog .field label .req { color: inherit; }
.input { width: 100%; height: var(--control-height); padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--surface); color: var(--ink); font: 400 16px/24px var(--font-sans); transition: border-color .15s ease, box-shadow .15s ease; }
textarea.input { height: 104px; padding: 12px 14px; resize: vertical; }
select.input { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231d1d1b' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input::placeholder { color: #7a7c7c; }
.input:hover { border-color: var(--ink); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.on-color .input:focus { box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 2px var(--lime); }
.input[aria-invalid="true"] { border-color: #b3261e; box-shadow: inset 0 0 0 1px #b3261e; }
.field-error { font-size: 13px; line-height: 18px; color: #b3261e; font-weight: 600; min-height: 0; }
.on-color .field-error { color: #ffd4c4; }
.consent { grid-column: 1 / -1; display: flex; gap: var(--space-3); align-items: flex-start; font-size: 13px; line-height: 20px; }
.consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--orange-strong); border-radius: 2px; }
.on-color .consent { color: #c9d1c2; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.form-note { font-size: 13px; line-height: 20px; }
.on-color .form-note { color: #c9d1c2; }
.form[data-state="sending"] .tz-btn[type="submit"] { opacity: .7; pointer-events: none; }
.form-status { grid-column: 1 / -1; padding: var(--space-4) var(--space-5); font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status.ok { background: var(--lime); color: var(--on-lime); }
.form-status.err { background: #fbe4dc; color: #6b1d05; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ── Модальное окно ──────────────────────────── */
.dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 0; background: var(--surface); color: var(--ink); overflow: auto; }
.dialog::backdrop { background: rgba(17, 19, 21, .72); }
@media (prefers-reduced-motion: no-preference) {
  .dialog[open] { animation: dlg-in .25s var(--ease-out); }
  .dialog[open]::backdrop { animation: fade .2s ease-out; }
}
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding: var(--space-6) var(--space-6) 0; }
.dialog-head h2 { margin: 0; font-size: 26px; line-height: 32px; text-transform: uppercase; }
.dialog-head p { margin: var(--space-2) 0 0; color: var(--ink-muted); }
.dialog-close { flex: none; width: 44px; height: 44px; border: 0; background: var(--surface-alt); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .15s ease; }
.dialog-close:hover { background: var(--line); }
.dialog .form { padding: var(--space-6); }
.dialog-bar { height: 8px; background: var(--orange); }

/* ── Footer ─────────────────────────────────── */
.site-footer { background: var(--surface-dark); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.site-footer .lion { position: absolute; left: -80px; bottom: -120px; width: 480px; opacity: .05; z-index: -1; pointer-events: none; }
.foot { display: grid; grid-template-columns: 4fr 3fr 3fr 4fr; gap: var(--space-7); padding: var(--space-9) 0 var(--space-8); }
.foot-logo { width: 184px; }
.foot-desc { margin: var(--space-5) 0 0; font-size: 14px; line-height: 22px; color: var(--on-dark-muted); max-width: 34ch; }
.foot h3 { margin: 0 0 var(--space-4); font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--on-dark-muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.foot a { text-decoration: none; font-size: 15px; line-height: 22px; font-weight: 500; }
.foot a:hover { color: var(--orange-on-dark); }
.foot-phone { font-size: 24px !important; line-height: 30px !important; font-weight: 700 !important; }
.foot address { font-style: normal; font-size: 14px; line-height: 22px; color: var(--on-dark-muted); margin-top: var(--space-4); }
.foot-bottom { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding: var(--space-5) 0; border-top: 1px solid #2c3236; font-size: 13px; line-height: 20px; color: var(--on-dark-muted); }
.foot-bottom a { text-decoration: none; }
.foot-bottom a:hover { color: var(--on-dark); }
@media (max-width: 1080px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot { grid-template-columns: 1fr; gap: var(--space-6); padding-top: var(--space-8); } }

/* ── Шапка внутренних страниц ──────────────── */
.page-head { padding: 72px 0 var(--space-7); background: var(--surface-alt); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-5); padding: 0; list-style: none; font-size: 13px; line-height: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--ink-muted); }
.crumbs li + li::before { content: "/"; margin-right: var(--space-2); color: var(--line-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-head h1 { margin: 0; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; text-transform: uppercase; letter-spacing: -0.01em; text-wrap: balance; }
.page-head .lead { margin: var(--space-4) 0 0; color: var(--ink-muted); max-width: 60ch; }

/* ── Каталог ───────────────────────────────── */
.filter { position: sticky; top: 80px; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.filter .wrap { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; padding-top: var(--space-3); padding-bottom: var(--space-3); }
.filter .wrap::-webkit-scrollbar { display: none; }
.chip { flex: none; appearance: none; height: 40px; padding: 0 18px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: 700 13px/20px var(--font-sans); letter-spacing: .03em; text-transform: uppercase; cursor: pointer; transition: background-color .15s ease, color .15s ease, transform .16s var(--ease-out); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.chip .n { margin-left: 6px; font-weight: 500; opacity: .7; }
@media (hover: hover) { .chip:not([aria-pressed="true"]):hover { background: var(--surface-alt); } }
@media (max-width: 960px) { .filter { top: 64px; } }
.cat-group[hidden] { display: none; }
.cat-cover { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 300px; background: var(--orange); color: var(--on-dark); overflow: hidden; margin-bottom: var(--space-6); }
.cat-cover-text { padding: var(--space-7) var(--space-6); display: flex; flex-direction: column; justify-content: flex-end; }
.cat-cover h2 { margin: 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.06; text-transform: uppercase; text-wrap: balance; }
.cat-cover p { margin: var(--space-4) 0 0; font-size: 19px; line-height: 28px; font-weight: 700; max-width: 40ch; }
.cat-cover-img { position: relative; clip-path: polygon(70px 0, 100% 0, 100% 100%, 0 100%); }
.cat-cover-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.cat-group + .cat-group { margin-top: var(--space-9); }
@media (max-width: 760px) { .cat-cover { grid-template-columns: 1fr; } .cat-cover-img { min-height: 200px; clip-path: polygon(0 32px, 100% 0, 100% 100%, 0 100%); order: -1; } .cat-cover-text { padding: var(--space-5) var(--space-5) var(--space-6); } }
.equip { margin-top: var(--space-9); display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-8); padding-top: var(--space-7); border-top: 2px solid var(--ink); }
.equip-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.equip-cols h3 { margin: 0 0 var(--space-4); font-size: 16px; line-height: 22px; text-transform: uppercase; }
@media (max-width: 960px) { .equip { grid-template-columns: 1fr; gap: var(--space-6); } }
@media (max-width: 560px) { .equip-cols { grid-template-columns: 1fr; } }
.banner { margin-top: var(--space-9); background: var(--surface-dark); color: var(--on-dark); padding: var(--space-7) var(--space-6); display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; position: relative; overflow: hidden; }
.banner::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 160px; background: var(--orange); clip-path: polygon(60px 0, 100% 0, 100% 100%, 0 100%); }
.banner h2 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; text-transform: uppercase; max-width: 26ch; }
.banner p { margin: var(--space-2) 0 0; color: var(--on-dark-muted); }
.banner .tz-btn { position: relative; z-index: 1; margin-right: 140px; }
@media (max-width: 760px) { .banner::after { width: 100%; height: 8px; top: auto; clip-path: none; } .banner .tz-btn { margin-right: 0; } }

/* ── Карточка модели ───────────────────────── */
.model-top { padding: 64px 0 var(--space-8); }
.model-grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-8); align-items: start; }
.model-cat { display: block; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--orange-text); margin-bottom: var(--space-3); text-decoration: none; }
.model-cat:hover { text-decoration: underline; }
.model-h1 { margin: 0; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; text-transform: uppercase; text-wrap: balance; }
.model-h1 span { display: block; color: var(--orange-text); font-size: 1.55em; line-height: 1.02; margin-top: var(--space-2); letter-spacing: -0.01em; }
.model-chassis { margin: var(--space-4) 0 0; font-size: 15px; line-height: 22px; }
.model-chassis b { font-weight: 700; }
.model-stats { display: grid; grid-template-columns: 1fr 1fr; margin: var(--space-6) 0; border-top: 2px solid var(--ink); }
.model-stats .tz-stat { padding: var(--space-4) var(--space-4) var(--space-4) 0; border-bottom: 1px solid var(--line); min-width: 0; }
.model-stats .tz-stat-value { font-size: 32px; line-height: 36px; color: var(--orange-text); }
.model-stats .tz-stat-unit { font-size: 16px; margin-left: 4px; }
.model-stats .tz-stat-label { font-size: 13px; line-height: 18px; color: var(--ink-muted); max-width: none; }
.model-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.gallery-main { aspect-ratio: 16 / 10; background: var(--surface-alt); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) { .gallery-main img.swap { animation: fade .3s ease-out; } }
.thumbs { display: flex; gap: var(--space-3); margin-top: var(--space-3); }
.thumb { flex: 0 1 120px; aspect-ratio: 16 / 10; padding: 0; border: 2px solid transparent; background: var(--surface-alt); cursor: pointer; overflow: hidden; transition: border-color .15s ease; }
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: opacity .15s ease; }
.thumb[aria-current="true"] { border-color: var(--orange); }
.thumb[aria-current="true"] img, .thumb:hover img { opacity: 1; }
@media (max-width: 960px) { .model-grid { grid-template-columns: 1fr; gap: var(--space-6); } .model-media { order: -1; } }
.model-section { padding: var(--space-8) 0; border-top: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: 4fr 8fr; gap: var(--space-8); align-items: start; }
.two-col > h2 { margin: 0; font-size: 26px; line-height: 32px; text-transform: uppercase; position: sticky; top: 112px; }
.prose p { margin: 0 0 var(--space-4); max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }
.seasons2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin-top: var(--space-6); }
.season-box { padding: var(--space-5); background: var(--surface-alt); }
.season-box h3 { margin: 0 0 var(--space-3); font-size: 15px; line-height: 20px; letter-spacing: .03em; text-transform: uppercase; display: flex; align-items: center; gap: var(--space-2); }
.season-box h3 i { width: 6px; height: 18px; background: var(--orange); transform: skewX(var(--slant-bar)); display: inline-block; }
.season-box p { margin: 0; font-size: 15px; line-height: 24px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); font-size: 28px; line-height: 30px; font-weight: 700; color: var(--orange-text); font-variant-numeric: tabular-nums; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7) var(--space-7); }
.specs .tz-spec { max-width: none; }
.specs .tz-spec-row dt { flex: 0 1 auto; }
.specs .tz-spec-row dd { text-align: right; max-width: 55%; }
.specs .tz-spec-row { align-items: flex-end; padding: 2px 0; }
.specs-1 { grid-template-columns: minmax(0, 720px); }
@media (max-width: 1080px) { .specs { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; gap: var(--space-5); } .two-col > h2 { position: static; } }
@media (max-width: 560px) { .seasons2 { grid-template-columns: 1fr; } .specs .tz-spec-row { flex-wrap: wrap; } .specs .tz-spec-row dd { max-width: none; } }
.note { margin-top: var(--space-5); font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.related { background: var(--surface-alt); }

/* ── Контакты ──────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-8); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.contact-list li { display: grid; grid-template-columns: 28px 1fr; gap: var(--space-4); padding: var(--space-5) 0; border-bottom: 1px solid var(--line); }
.contact-list .icon { width: 24px; height: 24px; color: var(--orange-text); margin-top: 2px; }
.contact-list .k { display: block; font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-muted); }
.contact-list .v { display: block; margin-top: 4px; font-size: 20px; line-height: 28px; font-weight: 700; text-decoration: none; }
.contact-list a.v:hover { color: var(--orange-text); }
.contact-list .sub { display: block; font-size: 14px; line-height: 22px; color: var(--ink-muted); margin-top: 2px; }
.contact-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-6); }
.map { position: relative; aspect-ratio: 4 / 3; background: var(--surface-alt); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
.depts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.dept { padding: var(--space-5) var(--space-5) var(--space-5) 0; }
.dept + .dept { padding-left: var(--space-5); border-left: 1px solid var(--line); }
.dept b { display: block; font-size: 16px; line-height: 22px; text-transform: uppercase; }
.dept p { margin: var(--space-2) 0 0; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.dept a { display: block; margin-top: var(--space-3); font-weight: 700; text-decoration: none; }
.dept a:hover { color: var(--orange-text); }
.placeholder-mark { display: inline-block; margin-left: 6px; padding: 1px 6px; font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; background: #fff1c2; color: #5c4400; vertical-align: middle; }
.reqs .tz-spec { max-width: 720px; }
@media (max-width: 1080px) { .contact-grid { grid-template-columns: 1fr; } .depts { grid-template-columns: 1fr 1fr; } .dept:nth-child(3) { padding-left: 0; border-left: 0; } .dept:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .depts { grid-template-columns: 1fr; } .dept + .dept { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* ── Появление изображений при прокрутке (видимы по умолчанию без JS) ── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-in-out); }
  .js .reveal.is-in { clip-path: inset(0 0 0 0); }
}

/* ── Пакет исправлений после первого просмотра ── */
.tz-nav { justify-content: flex-start; gap: var(--space-5); }
.tz-header-inner { gap: var(--space-5); }
@media (max-width: 1360px) { .header-cta { display: none; } }
@media (max-width: 1180px) { .tz-nav a { font-size: 13px; } .tz-nav { gap: var(--space-4); } }
.tz-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 320px; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(26,29,31,0) 0%, rgba(26,29,31,.75) 70%); }
.tz-hero-inner, .hero-facts, .tz-hero-band { z-index: 2; }
.tz-stat-value .pre { font-size: .72em; vertical-align: baseline; margin-right: .18em; font-weight: 700; }
.stat-grid .tz-stat-value { font-size: clamp(28px, 2.7vw, 38px); }
.stat-grid .tz-stat-value .pre { font-size: .72em; vertical-align: baseline; }
.stat-grid .tz-stat { padding-right: var(--space-5); }
.eq-row { grid-template-columns: repeat(3, 1fr); }
.doc .doc-badge { display: flex; margin: 0; color: var(--on-dark); font-size: 14px; line-height: 1; }
.tz-spec-row dd { flex: 0 1 auto; text-align: right; }
.tz-spec-row dt { min-width: 0; }
.specs { grid-template-columns: minmax(0, 760px); }
@media (max-width: 960px) { .tz-hero-inner { padding-bottom: 236px; } .hero-facts { bottom: 64px; } }
@media (max-width: 640px) {
  .flag-plate h2 { font-size: 26px; }
  .flag-plate h2 span { font-size: 1.7em; }
  .eq-row { grid-template-columns: 1fr 1fr; }
  .sau { grid-template-columns: 112px 1fr; gap: var(--space-4); }
  .sau-img { max-width: none; }
  .tz-spec-row { flex-wrap: wrap; } .tz-spec-row dd { margin-left: auto; }
}
.stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-grid .tz-stat-value { font-size: clamp(26px, 2.4vw, 34px); }
@media (max-width: 640px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat-grid .tz-stat-value { font-size: 30px; } }

/* ── Новый кадр первого экрана (КАМАЗ целиком) ── */
.hero-pic { position: absolute; inset: 0; z-index: 0; display: block; }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 60%; }
.hero-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26,29,31,.85) 0%, rgba(26,29,31,.55) 32%, rgba(26,29,31,0) 55%); }
.tz-hero::after { display: none; }
.tz-hero-inner { padding-top: 168px; padding-bottom: 232px; }
.tz-hero { min-height: min(860px, 100svh); }
@media (min-width: 1700px) { .hero-pic img { object-position: 70% 60%; } }
@media (prefers-reduced-motion: no-preference) { .js .hero-pic img { animation: photo-in 1.4s var(--ease-out) both; } }
@media (max-width: 960px) {
  .tz-hero { min-height: 0; }
  .hero-pic { top: auto; height: 300px; }
  .hero-pic img { object-position: 82% 55%; }
  .hero-pic::after { background: linear-gradient(180deg, var(--surface-dark) 0%, rgba(26,29,31,0) 40%); }
  .tz-hero-inner { padding-top: 96px; padding-bottom: 300px; }
  .tz-hero-band { height: 64px; }
}
@media (min-width: 961px) {
  .tz-hero { min-height: max(720px, calc(100vw / 2.357)); }
  .hero-pic img { position: absolute; right: 0; bottom: 0; width: 100%; height: auto; object-fit: initial;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%); }
  .tz-hero-title { font-size: clamp(40px, 4vw, 64px); max-width: 640px; }
  .tz-hero-text { max-width: 500px; }
  .tz-hero-inner { padding-top: 136px; padding-bottom: 200px; }
}
@media (min-width: 961px) and (max-width: 1280px) { .hero-pic img { width: 112%; right: -6%; } }

/* ── Первый экран: заголовок и подзаголовок мельче ── */
.tz-hero-title { font-size: clamp(32px, 3.3vw, 52px); line-height: 1.04; max-width: 600px; }
.tz-hero-text { font-size: 16px; line-height: 26px; max-width: 460px; }
.tz-hero-eyebrow { font-size: 13px; }
@media (max-width: 960px) { .tz-hero-title { font-size: 34px; } .tz-hero-text { font-size: 16px; } }

/* ── Цикл «Разработка — Производство — Сервис»: изометрические иконки ── */
.cycle li { cursor: default; }
.cyc-ic { display: block; width: 132px; margin: 0 0 var(--space-3) -10px; }
.cyc-ic svg { display: block; width: 100%; height: auto; overflow: visible; }
.cycle b { transition: color .15s ease; }
@media (hover: hover) { .cycle li:hover b { color: var(--orange-text); } }
.cyc-ic .bp { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.cyc-ic .gear, .cyc-ic .wrench { transform-box: view-box; }
@media (prefers-reduced-motion: no-preference) {
  /* Разработка: чертёж прорисовывается заново, карандаш ходит по листу */
  .cycle li:hover .bp, .cycle li.is-live .bp { animation: bp-draw 1.4s var(--ease-out) both; }
  .cycle li:hover .bp:nth-of-type(2), .cycle li.is-live .bp:nth-of-type(2) { animation-delay: .12s; }
  .cycle li:hover .bp:nth-of-type(3), .cycle li.is-live .bp:nth-of-type(3) { animation-delay: .24s; }
  .cycle li:hover .pencil, .cycle li.is-live .pencil { animation: pencil 1.6s var(--ease-in-out) infinite; }
  /* Производство: деталь едет под пресс, пресс штампует */
  .cycle li:hover .part, .cycle li.is-live .part { animation: part 2.4s var(--ease-in-out) infinite; }
  .cycle li:hover .ram, .cycle li.is-live .ram { animation: ram 2.4s var(--ease-in-out) infinite; }
  /* Сервис: шестерня вращается, ключ доворачивает болт */
  .cycle li:hover .gear, .cycle li.is-live .gear { animation: gear 3s linear infinite; }
  .cycle li:hover .wrench, .cycle li.is-live .wrench { animation: wrench 1.4s var(--ease-in-out) infinite; }
}
@keyframes bp-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pencil { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-22px, -12.7px); } }
@keyframes part {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  40%, 62% { transform: translate(38.1px, 22px); }
  90% { transform: translate(76.2px, 44px); opacity: 1; }
  100% { transform: translate(76.2px, 44px); opacity: 0; }
}
@keyframes ram { 0%, 40% { transform: translateY(0); } 48% { transform: translateY(10px); } 56%, 100% { transform: translateY(0); } }
@keyframes gear { to { transform: rotate(360deg); } }
@keyframes wrench { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-28deg); } }
@media (max-width: 760px) { .cyc-ic { width: 112px; } }

/* ── Направления: шире контента на 25 %, с отступами между плитками ── */
.directions { max-width: calc(var(--container) * 1.25); margin: 0 auto; padding: 0 var(--gutter); gap: var(--space-5); background: none; }
@media (max-width: 960px) { .directions { gap: var(--space-4); } }
.dir-title { min-height: 64px; display: flex; align-items: flex-end; }
.dir-models { min-height: 44px; }
@media (max-width: 960px) { .dir-title, .dir-models { min-height: 0; } }

/* ── Изометрическая иконка направления в плитке ── */
.dir-badge { position: absolute; top: var(--space-5); left: var(--space-5); width: 168px; background: var(--surface); color: var(--ink); display: flex; flex-direction: column; }
.dir-badge svg { display: block; width: 100%; height: auto; padding: 6px 10px 0; box-sizing: border-box; }
.dir-badge .dir-count { position: static; display: block; background: var(--surface-dark); color: var(--on-dark); padding: 8px 12px; }
@media (prefers-reduced-motion: no-preference) { .dir-badge svg { transition: transform .4s var(--ease-out); } }
@media (hover: hover) { .dir:hover .dir-badge svg { transform: translateY(-4px); } }
@media (max-width: 960px) { .dir-badge { width: 132px; } }

/* ── Каталог: единая серая шапка с фильтрами, без отчерков, контент выше ── */
.page-head:has(~ .filter) { border-bottom: 0; padding-bottom: var(--space-5); }
.filter { background: var(--surface-alt); border-bottom: 0; }
.filter .wrap { padding-top: 0; padding-bottom: var(--space-6); }
.filter.is-stuck { box-shadow: none; border-bottom: 1px solid var(--line); }
.filter.is-stuck .wrap { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.filter ~ .section { padding-top: var(--space-7); }
.filter .chip:not([aria-pressed="true"]) { background: var(--surface); border-color: var(--surface); }
@media (hover: hover) { .filter .chip:not([aria-pressed="true"]):hover { border-color: var(--ink); background: var(--surface); } }

/* ── Направления: иконка слева, подпись справа (без фото) ── */
.directions2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.dir2 { position: relative; display: grid; grid-template-columns: 46% 1fr; align-items: center; gap: var(--space-4); padding: var(--space-5) var(--space-5) var(--space-5) var(--space-4);
  background: var(--surface-alt); color: var(--ink); text-decoration: none; overflow: hidden; transition: background-color .2s ease; }
.dir2::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left center; transition: transform .3s var(--ease-out); }
.dir2-ic svg { display: block; width: 100%; height: auto; overflow: visible; transition: transform .4s var(--ease-out); }
.dir2-body { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.dir2-title { margin: 0; font-size: 20px; line-height: 24px; font-weight: 700; text-transform: uppercase; text-wrap: balance; }
.dir2-models { font-size: 13px; line-height: 19px; color: var(--ink-muted); }
.dir2 .link-arrow { margin-top: var(--space-2); font-size: 13px; color: var(--orange-text); }
@media (hover: hover) {
  .dir2:hover { background: #e2e2df; }
  .dir2:hover::after { transform: scaleX(1); }
  .dir2:hover .dir2-ic svg { transform: translateY(-4px) scale(1.03); }
  .dir2:hover .link-arrow .icon { transform: translateX(4px); }
}
.dir2:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 1180px) { .directions2 { grid-template-columns: 1fr; gap: var(--space-4); } .dir2 { grid-template-columns: 220px 1fr; } }
@media (max-width: 560px) { .dir2 { grid-template-columns: 120px 1fr; padding: var(--space-4); } .dir2-title { font-size: 17px; line-height: 22px; } }

/* Отступ между разделами каталога — только между видимыми (фильтр скрывает разделы) */
.cat-group + .cat-group { margin-top: 0; }
.cat-group:not([hidden]) ~ .cat-group:not([hidden]) { margin-top: var(--space-9); }

/* ── Лев в блоке «Локализация»: рычит при наведении ── */
.local-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: end; margin-top: var(--space-8); }
.local-bottom .local-quote { margin-top: 0; }
.local-lion { justify-self: end; width: min(340px, 100%); fill: var(--on-dark); opacity: .9; cursor: pointer; transition: opacity .2s ease; }
.local-lion svg { display: block; width: 100%; height: auto; overflow: visible; }
.local-lion:hover { opacity: 1; }
.roar .jaw, .roar .head { transform-box: view-box; }
.roar .fang { transform-box: fill-box; transform-origin: center top; transform: scaleY(0); }
@media (prefers-reduced-motion: no-preference) {
  .local-lion.is-roaring .jaw { animation: lion-jaw 1.9s 1 -1.05s; }
  .local-lion.is-roaring .head { animation: lion-head 1.9s 1 -1.05s; }
  .local-lion.is-roaring .fang { animation: lion-fang 1.9s 1 -1.05s; }
}
@keyframes lion-jaw {
  0%, 52% { transform: rotate(0deg); animation-timing-function: cubic-bezier(.3,0,.2,1); }
  58% { transform: rotate(3deg); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  66% { transform: rotate(-21deg); } 70% { transform: rotate(-18deg); } 74% { transform: rotate(-21deg); } 78% { transform: rotate(-18.5deg); }
  82% { transform: rotate(-20deg); animation-timing-function: cubic-bezier(.6,0,.4,1); }
  92%, 100% { transform: rotate(0deg); }
}
@keyframes lion-head {
  0%, 52% { transform: rotate(0deg) translateX(0); animation-timing-function: cubic-bezier(.3,0,.2,1); }
  58% { transform: rotate(1.5deg) translateX(1px); animation-timing-function: cubic-bezier(.23,1,.32,1); }
  66%, 82% { transform: rotate(-4deg) translateX(-3px); animation-timing-function: cubic-bezier(.6,0,.4,1); }
  94%, 100% { transform: rotate(0deg) translateX(0); }
}
@keyframes lion-fang { 0%, 58% { transform: scaleY(0); } 66%, 82% { transform: scaleY(1); } 90%, 100% { transform: scaleY(0); } }
@media (max-width: 960px) { .local-bottom { grid-template-columns: 1fr; gap: var(--space-6); } .local-lion { justify-self: start; width: 220px; } }

/* Единые подписи: цикл «Разработка — Сервис» и таймлайн */
.cycle p, .tl p { font-size: 14px; line-height: 22px; color: var(--ink); }
.cycle p { max-width: 30ch; }
.tl p { max-width: 34ch; }
.tl-year { height: 40px; } .tl-year small { line-height: 1; }

/* ── Локализация: лев по центру сверху, цитата под заголовком ── */
.local .local-lion { width: 170px; margin: 0 auto var(--space-7); justify-self: auto; }
.local-left { display: flex; flex-direction: column; gap: var(--space-6); }
.local-left .local-quote { margin: 0; font-size: clamp(20px, 2vw, 26px); }
.local-grid { align-items: start; }
@media (max-width: 960px) { .local .local-lion { width: 130px; margin-bottom: var(--space-6); } }

/* ── Меню: три пункта по центру между логотипом и телефоном ── */
.tz-nav { flex: 1; justify-content: center; gap: var(--space-7); }
@media (max-width: 1180px) { .tz-nav { gap: var(--space-5); } }

/* ── Блок заявки: без зелёного фона ── */
.lead-sec { background: var(--surface); color: var(--ink); border-top: 1px solid var(--line); }
.lead-sec .lion { display: none; }
.lead-sec .tz-st-lead { color: var(--ink-muted); }
.lead-sec .lead-contacts .icon { color: var(--orange-text); }
.lead-sec .lead-contacts a:hover { color: var(--orange-text); }

/* ── Направления: 3D-изометрия (рендеры) на белых карточках ── */
.dir2 { background: var(--surface); border: 1px solid var(--line); grid-template-columns: 50% 1fr; padding: var(--space-4) var(--space-5) var(--space-4) var(--space-3); }
.dir2-ic img { display: block; width: 100%; height: auto; transition: transform .45s var(--ease-out); }
@media (hover: hover) {
  .dir2:hover { background: var(--surface); border-color: var(--line-strong); }
  .dir2:hover .dir2-ic img { transform: translateY(-4px) scale(1.03); }
}
@media (max-width: 1180px) { .dir2 { grid-template-columns: 260px 1fr; } }
@media (max-width: 560px) { .dir2 { grid-template-columns: 140px 1fr; } }

/* ── Направления v3: крупная иконка сверху, подписи снизу ── */
.dir2 { grid-template-columns: 1fr; align-items: stretch; gap: 0; padding: 0; }
.dir2-ic { display: block; aspect-ratio: 4 / 3; padding: var(--space-5) var(--space-5) 0; }
.dir2-ic picture, .dir2-ic img { width: 100%; height: 100%; }
.dir2-ic img { object-fit: contain; }
.dir2-body { padding: var(--space-4) var(--space-6) var(--space-6); gap: var(--space-2); border-top: 1px solid var(--line); margin-top: var(--space-3); }
.dir2-title { font-size: 17px; line-height: 22px; letter-spacing: .01em; }
.dir2-models { font-size: 13px; line-height: 20px; min-height: 40px; }
.dir2 .link-arrow { margin-top: var(--space-3); }
@media (max-width: 1180px) { .directions2 { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); } .dir2 { grid-template-columns: 1fr; } .dir2-body { padding: var(--space-4) var(--space-4) var(--space-5); } }
@media (max-width: 860px) { .directions2 { grid-template-columns: 1fr; } .dir2-models { min-height: 0; } .dir2-ic { aspect-ratio: 16 / 10; } }

/* ── САУ: пульты без фона, крупнее ── */
.sau { grid-template-columns: 1fr; gap: var(--space-5); }
.sau-img { background: none; aspect-ratio: auto; padding: 0; height: 240px; display: flex; align-items: flex-end; justify-content: flex-start; }
.sau-img picture { height: 100%; display: flex; align-items: flex-end; }
.sau-img img { width: auto; height: 100%; max-width: 100%; object-fit: contain; mix-blend-mode: normal; filter: drop-shadow(0 14px 18px rgba(26,29,31,.18)); }
@media (max-width: 560px) { .sau-img { height: 180px; } }

/* ── Блок связи (вместо формы) ── */
.lead-grid { align-items: center; }
.lead-reach { display: grid; gap: var(--space-5); justify-items: start; }
.lead-phone { display: inline-flex; align-items: center; gap: var(--space-4); text-decoration: none; color: var(--ink); }
.lead-phone .icon { width: 32px; height: 32px; color: var(--orange-text); }
.lead-phone b { display: block; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; }
.lead-phone small { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-muted); }
.lead-phone:hover b { color: var(--orange-text); }
.lead-mail { display: inline-flex; align-items: center; gap: var(--space-3); font-size: 18px; font-weight: 600; text-decoration: none; color: var(--ink); }
.lead-mail .icon { color: var(--orange-text); }
.lead-mail:hover { color: var(--orange-text); }
.lead-soc { display: grid; gap: var(--space-3); padding-top: var(--space-5); border-top: 1px solid var(--line); width: 100%; }
.lead-soc-k { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-muted); }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.socials a { display: inline-flex; align-items: center; gap: var(--space-2); height: 44px; padding: 0 18px; border: 2px solid var(--ink); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: .02em; transition: background-color .15s ease, color .15s ease, transform .16s var(--ease-out); }
.socials a .icon { width: 18px; height: 18px; }
.socials a:hover { background: var(--ink); color: var(--surface); }
.socials a:active { transform: scale(.97); }
.socials-foot { margin-top: var(--space-4); }
.socials-foot a { border-color: #3a4044; color: var(--on-dark); height: 40px; padding: 0 14px; font-size: 13px; }
.socials-foot a:hover { background: var(--on-dark); color: var(--surface-dark); border-color: var(--on-dark); }
.contact-list .socials { margin-top: var(--space-3); }
.dept a { display: block; margin-top: var(--space-2); }
.depts { grid-template-columns: repeat(5, 1fr); }
.dept:nth-child(3) { padding-left: var(--space-5); border-left: 1px solid var(--line); }
.tz-hero-sub { display: block; margin-top: var(--space-4); font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-on-dark); }
@media (max-width: 1180px) { .depts { grid-template-columns: repeat(3, 1fr); } .dept:nth-child(4) { padding-left: 0; border-left: 0; } .dept:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .depts { grid-template-columns: 1fr; } .dept, .dept + .dept, .dept:nth-child(3) { padding-left: 0; border-left: 0; } }
.contact-list .socials li, .foot .socials li { display: block; padding: 0; border: 0; grid-template-columns: none; }
.contact-list .socials .icon { width: 18px; height: 18px; margin: 0; color: currentColor; }
.foot ul.socials { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.foot .socials a { font-size: 13px; font-weight: 700; }
.socials-foot a { padding: 0 10px; gap: 6px; font-size: 12px !important; } .socials-foot { gap: 6px !important; }

/* ── Правки клиента 09.10 ── */
/* единый шрифт абзацев */
.tz-st-lead, .lead, .capacity-text p, .capacity-text .lead, .capacity-text .muted, .prose p, .page-head .lead, .local .tz-st-lead {
  font-family: var(--font-sans); font-size: 17px; line-height: 28px; font-weight: 400; letter-spacing: 0; color: var(--ink-muted); }
.dark .tz-st-lead, .local .tz-st-lead { color: var(--on-dark-muted); }
.capacity-text strong { color: var(--ink); font-weight: 700; }
/* флаг-логотип не наезжает на хлебные крошки */
.page-head { padding-top: 112px; }
.model-top { padding-top: 112px; }
@media (max-width: 960px) { .page-head, .model-top { padding-top: 88px; } }
/* баннер каталога: телефон вместо кнопки */
.banner-phone { position: relative; z-index: 1; margin-right: 140px; color: var(--on-dark); text-decoration: none; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.1; white-space: nowrap; }
.banner-phone small { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--on-dark-muted); }
.banner-phone:hover { color: var(--orange-on-dark); }
@media (max-width: 760px) { .banner-phone { margin-right: 0; } }
.sub-stats { grid-template-columns: repeat(4, 1fr); margin: var(--space-6) 0; }
@media (max-width: 760px) { .sub-stats { grid-template-columns: 1fr 1fr; } }
.foot-bottom { justify-content: flex-start; }
.banner-phone span { display: block; }
.banner-phone small { display: block; }
@media (max-width: 760px) { .banner-phone { white-space: normal; } }

/* ── Правки 10.10: текстовые показатели и мобильные цифры ── */
.tz-stat--text .tz-stat-value, .model-stats .tz-stat--text .tz-stat-value { font-size: 20px; line-height: 26px; white-space: normal; text-wrap: balance; }
.model-stats .tz-stat { padding-right: var(--space-4); }
.model-stats .tz-stat-value { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .model-stats { column-gap: var(--space-4); }
  .model-stats .tz-stat-value { font-size: 24px; line-height: 30px; }
  .model-stats .tz-stat-value .pre { font-size: 15px; }
  .model-stats .tz-stat-unit { font-size: 13px; }
  .model-stats .tz-stat--text .tz-stat-value { font-size: 17px; line-height: 22px; }
}
@media (max-width: 480px) {
  .model-stats { grid-template-columns: 1fr; }
  .model-stats .tz-stat { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: var(--space-4); padding: var(--space-3) 0; }
  .model-stats .tz-stat-value { white-space: nowrap; overflow-wrap: normal; font-size: 26px; line-height: 30px; }
  .model-stats .tz-stat--text .tz-stat-value { white-space: normal; font-size: 18px; line-height: 22px; max-width: 46vw; }
  .model-stats .tz-stat-label { margin-top: 0; }
}
