.at-news { gap: .7rem; }
.at-news__src {
  align-self: flex-start;
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--nv-blue-600); background: var(--surface-alt);
  border-radius: var(--r-full); padding: .3rem .75rem;
}
.at-news h3 { line-height: 1.3; }
.at-news p { font-size: .9rem; color: var(--text-muted); }
.at-news .link-arrow { margin-top: auto; }

.at-fig {
  margin: 0; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--sh-md);
}
.at-fig img { width: 100%; height: auto; }
.at-fig--wide { box-shadow: var(--sh-sm); }
.at-split--flip > :first-child { order: 0; }

.at-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-xl); overflow: hidden; }
.at-stat { display: flex; flex-direction: column; gap: .6rem; padding: clamp(1.6rem, 3vw, 2.6rem); background: var(--surface); }
.at-stat b {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.02em;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.at-stat span { color: var(--text-muted); font-size: .95rem; max-width: 46ch; }
.at-src { margin-top: 1rem; text-align: center; font-size: .78rem; color: var(--text-faint); }
.at-src a { color: var(--nv-blue-600); text-decoration: underline; }

.at-sc { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-xl); box-shadow: var(--sh-lg); overflow: hidden; }
.at-sc__steps { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line-soft); }
.at-sc__step { position: relative; text-align: left; padding: 1rem 1.1rem .9rem; border-right: 1px solid var(--line-soft); color: var(--text-faint); transition: background var(--t-fast); min-width: 0; }
.at-sc__step:last-child { border-right: 0; }
.at-sc__step:hover { background: var(--surface-soft); }
.at-sc__n { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .25rem; }
.at-sc__t { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--text); }
.at-sc__step::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: var(--grad-brand); }
.at-sc__step[aria-selected="true"] { background: var(--surface-alt); }
.at-sc__step[aria-selected="true"] .at-sc__n { color: var(--nv-blue-600); }
.at-sc__step[aria-selected="true"]::after { width: 100%; }
.at-sc__step--alarm[aria-selected="true"] { background: #FEF2F2; }
.at-sc__step--alarm[aria-selected="true"] .at-sc__n { color: #B91C1C; }
.at-sc__step--alarm[aria-selected="true"]::after { background: #EF4444; }
.at-sc.is-playing .at-sc__step[aria-selected="true"]::after { animation: atFill 6s linear forwards; }
@keyframes atFill { from { width: 0; } to { width: 100%; } }

.at-sc__body { display: grid; grid-template-columns: 1.35fr 1fr; }
.at-sc__visual { display: flex; flex-direction: column; gap: .9rem; padding: 1.5rem; background: linear-gradient(180deg, var(--surface-soft), var(--surface-alt)); min-width: 0; }
.at-sc__visual svg { width: 100%; height: auto; }
.at-sc__caption { font-size: .92rem; font-weight: 600; color: var(--text); }
.at-sc__log { display: flex; flex-direction: column; gap: .7rem; padding: 1.5rem; border-left: 1px solid var(--line-soft); min-width: 0; }
.at-sc__title { font-size: 1.05rem; }
.at-sc__events { display: flex; flex-direction: column; gap: .5rem; list-style: none; }
.at-ev { display: grid; grid-template-columns: 3.2rem 1fr; gap: .6rem; padding: .65rem .8rem; border-radius: var(--r-md); background: var(--surface-soft); border-left: 3px solid var(--nv-blue); font-size: .88rem; line-height: 1.45; color: var(--text); animation: atIn .35s var(--ease-out) both; }
.at-ev time { font-size: .78rem; font-weight: 600; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.at-ev--warn { border-left-color: #F59E0B; background: #FFFBEB; }
.at-ev--alarm { border-left-color: #EF4444; background: #FEF2F2; font-weight: 600; }
.at-ev__tag { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .05rem .45rem; border-radius: 6px; margin-right: .4rem; vertical-align: 1px; }
.at-ev--warn .at-ev__tag { background: #F59E0B; color: #1F1300; }
.at-ev--alarm .at-ev__tag { background: #DC2626; color: #fff; }
@keyframes atIn { from { opacity: .3; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.at-sc__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1.5rem; border-top: 1px solid var(--line-soft); font-size: .82rem; color: var(--text-faint); }
.at-sc__toggle { border: 1px solid var(--line); border-radius: var(--r-full); padding: .4rem .9rem; font-size: .82rem; font-weight: 600; color: var(--text); }
.at-sc__toggle:hover { border-color: var(--nv-blue); }

.at-sc__visual svg { border-radius: var(--r-lg); }
#at-truck .at-night, #at-truck .at-stars, #at-truck .at-beam { opacity: 0; transition: opacity .9s ease; }
#at-truck.night .at-night, #at-truck.night .at-stars, #at-truck.night .at-beam { opacity: 1; }
#at-truck .at-far, #at-truck .at-mid { transition: fill .9s ease, stroke .9s ease; }
#at-truck.night .at-far { fill: #2E4170; }
#at-truck .at-ground { transition: fill .9s ease; }
#at-truck.night .at-ground { fill: #1E2A47; }
#at-truck.night .at-road { stroke: #64748B; }
#at-truck.night .at-mid { fill: #4A5D8A; stroke: #4A5D8A; }
#at-truck .at-far { animation: atFar 60s linear infinite paused; }
#at-truck .at-mid { animation: atMid 2.6s linear infinite paused; }
#at-truck .at-road { animation: atRoad .3s linear infinite paused; }
#at-truck .at-wheel { transform-box: fill-box; transform-origin: center; animation: atSpin .9s linear infinite paused; }
#at-truck .at-bob--t { animation: atBob .46s ease-in-out infinite alternate paused; }
#at-truck .at-bob--c { animation: atBob .38s ease-in-out infinite alternate paused; }
#at-truck.moving .at-far, #at-truck.moving .at-mid, #at-truck.moving .at-road, #at-truck.moving .at-wheel, #at-truck.moving .at-bob { animation-play-state: running; }
#at-truck .at-smoke circle { opacity: 0; transform-box: fill-box; transform-origin: center; }
#at-truck.moving .at-smoke circle { animation: atPuff 1.2s ease-out infinite; }
#at-truck.moving .at-smoke circle:nth-child(2) { animation-delay: .4s; }
#at-truck.moving .at-smoke circle:nth-child(3) { animation-delay: .8s; }
#at-truck .at-tractor { transition: transform 1.4s cubic-bezier(.45, 0, .25, 1); }
#at-truck.detached .at-tractor { transform: translateX(120px); }
#at-truck.detached .at-tractor .at-wheel { animation: atSpinOnce 1.4s cubic-bezier(.45, 0, .25, 1) both; }
#at-truck .at-link { transition: opacity .4s; animation: atFlow .8s linear infinite; }
#at-truck.detached .at-link { opacity: 0; }
#at-truck .at-door { transition: fill .4s; }
#at-truck.open .at-door { fill: #FCD34D; }
#at-truck.loading .at-box { animation: atLoadIn .8s cubic-bezier(.2, .7, .3, 1) both; }
#at-truck.unloading .at-box { animation: atLoadOut .8s cubic-bezier(.6, 0, .8, .4) both; }
#at-truck.loading .at-box:nth-child(2), #at-truck.unloading .at-box:nth-child(6) { animation-delay: .35s; }
#at-truck.loading .at-box:nth-child(3), #at-truck.unloading .at-box:nth-child(5) { animation-delay: .7s; }
#at-truck.loading .at-box:nth-child(4), #at-truck.unloading .at-box:nth-child(4) { animation-delay: 1.05s; }
#at-truck.loading .at-box:nth-child(5), #at-truck.unloading .at-box:nth-child(3) { animation-delay: 1.4s; }
#at-truck.loading .at-box:nth-child(6), #at-truck.unloading .at-box:nth-child(2) { animation-delay: 1.75s; }
#at-truck.loading .at-box:nth-child(7), #at-truck.unloading .at-box:nth-child(1) { animation-delay: 2.1s; }
#at-truck.unloading .at-box:nth-child(7) { animation-delay: 0s; }
#at-truck .at-node { transition: fill .3s; }
#at-truck.alarm .at-node { fill: #EF4444; }
#at-truck .at-ring, #at-truck .at-sweep { opacity: 0; }
#at-truck.alarm .at-ring { opacity: 1; animation: atPulse 1.4s ease-out infinite; transform-origin: 550px 150px; transform-box: view-box; }
#at-truck.alarm .at-sweep { opacity: .22; animation: atSweep 2.4s linear infinite; transform-origin: 550px 150px; transform-box: view-box; }
#at-truck .at-heat { opacity: 0; transition: opacity .6s; transform-box: fill-box; transform-origin: center; }
#at-truck.alarm .at-heat { opacity: 1; animation: atBreath 2.2s ease-in-out infinite; }
#at-truck .at-marker { fill: #F59E0B; }
#at-truck.alarm .at-marker { fill: #EF4444; animation: atBlink 1s steps(2, jump-none) infinite; }
@keyframes atFar { to { transform: translateX(-1760px); } }
@keyframes atMid { to { transform: translateX(-440px); } }
@keyframes atRoad { to { stroke-dashoffset: 84; } }
@keyframes atSpin { to { transform: rotate(360deg); } }
@keyframes atSpinOnce { from { transform: rotate(0); } to { transform: rotate(172deg); } }
@keyframes atBob { from { transform: translateY(0); } to { transform: translateY(-2.5px); } }
@keyframes atPuff { 0% { opacity: .45; transform: translate(0, 0) scale(.4); } 100% { opacity: 0; transform: translate(-90px, -18px) scale(1.9); } }
@keyframes atFlow { to { stroke-dashoffset: -40; } }
@keyframes atLoadIn { from { opacity: 0; transform: translateX(-300px); } 35% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes atLoadOut { from { opacity: 1; transform: none; } 65% { opacity: 1; } to { opacity: 0; transform: translateX(-300px); } }
@keyframes atPulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
@keyframes atSweep { to { transform: rotate(360deg); } }
@keyframes atBreath { 50% { transform: scale(1.06); } }
@keyframes atBlink { 50% { opacity: .25; } }

@media (max-width: 960px) {
  .at-sc__body { grid-template-columns: 1fr; }
  .at-sc__log { border-left: 0; border-top: 1px solid var(--line-soft); }
  .at-split--flip > :first-child { order: 2; }
}
@media (max-width: 640px) {
  .at-sc__steps { grid-template-columns: 1fr 1fr; }
  .at-sc__step:nth-child(2) { border-right: 0; }
  .at-sc__step:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .at-sc__visual, .at-sc__log { padding: 1rem; }
  .at-stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .at-sc *, #at-truck * { animation: none !important; transition: none !important; }
}
.at-pn { background: var(--surface-soft); padding: clamp(.6rem, 1.6vw, 1rem); }
.at-pn svg { display: block; width: 100%; height: auto; }
#at-panel .at-pn-canli { animation: atBlink 1.4s ease-in-out infinite; }
#at-panel .at-pn-dalga { transform-box: fill-box; transform-origin: center; animation: atPnDalga 1.8s ease-out infinite; }
@keyframes atPnDalga { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #at-panel * { animation: none !important; } }

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/inter-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/montserrat-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/noto-sans-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/noto-kufi-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }

.page-hero { position: relative; }
.at-lang {
  position: absolute; z-index: 5;
  top: calc(var(--nav-h) + 16px);
  right: max(24px, calc((100% - var(--container)) / 2 + 24px));
  display: flex; gap: 4px; padding: 4px;
  direction: ltr;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.at-lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 32px; padding: 0 10px;
  border-radius: 999px;
  font: 600 .78rem/1 var(--font-body);
  letter-spacing: .06em;
  color: rgba(226, 240, 255, .85);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.at-lang a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.at-lang a:focus-visible { outline: 2px solid #7DD3FC; outline-offset: 2px; }
.at-lang a[aria-current="true"] { background: #fff; color: #0A1226; }
@media (max-width: 640px) {
  .at-lang { top: calc(var(--nav-h) + 10px); right: 16px; }
  .at-lang a { min-width: 36px; height: 30px; padding: 0 8px; }
  .page-hero .breadcrumb { padding-right: 180px; }
}

main[dir="rtl"] .page-hero .breadcrumb { padding-right: 0; }
@media (min-width: 641px) { main[dir="rtl"] .page-hero__inner { padding-top: 40px; } }
@media (max-width: 640px) { main[dir="rtl"] .page-hero .breadcrumb { padding-top: 44px; } }
main[dir="rtl"], main[dir="rtl"] * { letter-spacing: 0 !important; }
main[dir="rtl"] .trust-band { direction: ltr; }
main[dir="rtl"] .trust-band__item { direction: rtl; }
main[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
#at-panel, #at-truck { direction: ltr; }
.at-stat .at-ex { font: inherit; font-weight: 700; color: var(--text); }
