@charset "utf-8";
/* robomatic.ru — как прежний сайт: графитовая шапка, жёлтый FANUC, фото робота с цитатой Азимова.
   Цвета — в токенах (tokens.css, [data-site="robomatic"]). */

/* шапка: тёмная, жёлтая черта снизу; логотип — SVG прежнего сайта */
[data-site="robomatic"] .site-header { background: rgb(21 23 28 / 96%); border-bottom: 3px solid var(--c-accent); }
[data-site="robomatic"] .site-header__row { min-height: 72px; }
.logo__svg { display: block; width: 168px; height: 60px; background: #fff;
  -webkit-mask: var(--u) left center / contain no-repeat; mask: var(--u) left center / contain no-repeat; }
[data-site="robomatic"] .site-header__row .logo { flex: none; }
[data-site="robomatic"] .site-nav a { color: #fff; }
[data-site="robomatic"] .site-nav a:hover, [data-site="robomatic"] .site-nav a[aria-current] { color: var(--c-accent); border-bottom-color: var(--c-accent); }
[data-site="robomatic"] .site-header__phone { color: #fff; }
[data-site="robomatic"] .site-header__row .nav-toggle { color: #fff; }
[data-site="robomatic"] .site-header__cta { background: var(--c-accent); color: #15171c; }
[data-site="robomatic"] .site-header__cta:hover { background: #ffd83a; color: #15171c; }
@media (min-width: 961px) {
  [data-site="robomatic"] .site-header__row .site-nav .site-nav__sub a { color: var(--c-text); }   /* выпадающее меню — белое */
  [data-site="robomatic"] .site-nav ul { flex-wrap: nowrap; gap: var(--sp-1) var(--sp-5); }
  [data-site="robomatic"] .site-nav a { white-space: nowrap; }
}
@media (max-width: 1100px) { [data-site="robomatic"] .site-header__cta { display: none; } }

/* первый экран: фото прежнего сайта (цитата — на самом фото), пункты и проекты поверх */
.rb-hero { position: relative; color: #fff; background: #0e1a2e var(--bg) center right / cover no-repeat; }
.rb-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(10 14 24 / 72%) 0%, rgb(10 14 24 / 30%) 45%, transparent 70%),
  linear-gradient(0deg, rgb(10 14 24 / 70%) 0%, transparent 45%); }
.rb-hero__inner { position: relative; min-height: clamp(340px, 34vw, 460px); display: grid; align-content: end; gap: var(--sp-4); padding-top: var(--sp-7); padding-bottom: var(--sp-6); }
.rb-hero__title { margin: 0 0 auto; align-self: start; color: #fff; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); line-height: 1.15; max-width: 16ch; text-shadow: 0 2px 12px rgb(0 0 0 / 50%); }
.rb-hero__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 460px; }
.rb-hero__points li { position: relative; padding-left: 18px; font-size: .95rem; text-shadow: 0 1px 6px rgb(0 0 0 / 60%);
}
.rb-hero__points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent); }
.rb-hero__thumbs { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.rb-hero__thumbs a { display: block; width: 96px; height: 80px; border-radius: 6px; overflow: hidden; border: 2px solid rgb(255 255 255 / 70%); transition: border-color .2s, transform .2s; }
.rb-hero__thumbs a:hover { border-color: var(--c-accent); transform: translateY(-3px); }
.rb-hero__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* основная колонка + правая, как раньше */
.rb-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--sp-7); padding-top: var(--sp-7); padding-bottom: var(--sp-7); }
.rb-h { margin: 0 0 var(--sp-3); font-size: var(--fs-3); text-transform: uppercase; letter-spacing: .02em; }
.rb-h::after { content: ""; display: block; width: 48px; height: 4px; margin-top: 8px; background: var(--c-accent); border-radius: 2px; }
.rb-mission { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--sp-6); align-items: start; margin-bottom: var(--sp-7); }
.rb-mission__img { width: 100%; height: auto; }
.rb-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.rb-ticks li { position: relative; padding-left: 26px; }
.rb-ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 4px; background: var(--c-accent); }
.rb-ticks li::after { content: ""; position: absolute; left: 5px; top: calc(.3em + 3px); width: 4px; height: 8px; border: solid #15171c; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rb-fanuc { position: relative; overflow: hidden; display: grid; align-items: center; min-height: 220px; margin-bottom: var(--sp-6); padding: var(--sp-6);
  border-radius: 12px; background: var(--c-accent) var(--bg) right center / auto 100% no-repeat; box-shadow: 0 12px 30px rgb(0 0 0 / 12%); }
.rb-fanuc__text { max-width: 52%; color: #15171c; }
.rb-fanuc__text a { color: #15171c; text-decoration: underline; }
.rb-fanuc__lead { font-size: var(--fs-2); }
.rb-figure { margin: 0 0 var(--sp-6); }
.rb-figure img { width: 100%; height: auto; border-radius: 8px; }
.rb-figure figcaption { margin-top: 6px; color: var(--c-muted); font-size: .85rem; }

.rb-side { display: grid; gap: var(--sp-6); align-content: start; }
.rb-box__title { margin: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; padding-bottom: 8px; border-bottom: 1px solid var(--c-line); }
.rb-box__title span { color: #c99a00; }
.rb-box__sub { margin: 6px 0 var(--sp-3); color: var(--c-muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
.rb-news { list-style: none; margin: var(--sp-3) 0; padding: 0; display: grid; gap: var(--sp-4); }
.rb-news time { display: block; color: #b8860b; font-size: .8rem; }
.rb-news a { font-weight: 600; color: var(--c-text); }
.rb-news p { margin: 4px 0 0; color: var(--c-muted); font-size: .9rem; }
.rb-proj { list-style: none; margin: var(--sp-3) 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.rb-proj a { display: grid; gap: 6px; color: var(--c-text); font-size: .85rem; line-height: 1.3; text-decoration: none; }
.rb-proj img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; transition: transform .3s; }
.rb-proj a:hover img { transform: scale(1.03); }
.rb-links { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: grid; gap: 4px; }
.rb-links a { position: relative; padding-left: 14px; color: var(--c-text); }
.rb-links a::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; background: var(--c-accent); border-radius: 50%; }

.rb-series { background: #15171c; padding: var(--sp-5) 0; }
.rb-series__row { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.rb-series__card { display: flex; align-items: center; gap: var(--sp-3); color: var(--c-accent); text-decoration: none; }
.rb-series__card img { width: 96px; height: 64px; object-fit: cover; border-radius: 4px; border: 1px solid rgb(255 255 255 / 20%); }
.rb-series__card:hover span { text-decoration: underline; }

.rb-sitemap { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.rb-sitemap h2 { font-size: var(--fs-2); }
.rb-sitemap ul ul { margin-top: 4px; }

@media (max-width: 900px) {
  .rb-layout { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .rb-mission { grid-template-columns: 120px minmax(0, 1fr); gap: var(--sp-4); }
  .rb-fanuc { background-size: auto 60%; background-position: right bottom; padding-bottom: 140px; }
  .rb-fanuc__text { max-width: none; }
}
@media (max-width: 560px) {
  .rb-hero { background-position: 22% center; }   /* на узком экране в кадре робот, цитата с фото уходит за край */
  .rb-mission { grid-template-columns: 1fr; }
  .rb-mission__img { max-width: 160px; }
  .rb-hero__thumbs a { width: 80px; height: 66px; }
  .logo__svg { width: 140px; height: 50px; }
}
