/* Arkadiy Broun / warmbit.app © 2026 */
/*
 * Styles of the new rolstech.ru, one file for the whole site (ADR-0002, Р10). The only stylesheet of the site: the old
 * WordPress theme and plugin styles are gone (13.11.2026); section 0 keeps the element defaults the pages were built on.
 * Sections: 0. Base  1. Typography  2. Header, menu, footer
 */

/* ======================================================================
   0. Base: the element defaults of the old theme (normalize + its reboot), which the layout relies on
   ====================================================================== */

html { box-sizing: border-box; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent; }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; background: #fff; }
h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: 8px; }
p { margin-top: 0; margin-bottom: 16px; }
ul, ol { margin: 0 0 1.6em 1.3333em; padding-left: 40px; }
li > ul, li > ol { margin-bottom: 0; }
figure { margin: 0; }
img { border: 0; height: auto; max-width: 100%; vertical-align: middle; }
iframe, embed, object, video { max-width: 100%; }
iframe { border: 0; }
a { color: #494949; background-color: transparent; text-decoration: none; }
a:hover { color: var(--c-brand); }
#page { background: #fff; }
b, strong { font-weight: 700; }
small { font-size: 80%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }
table { border-collapse: separate; border-spacing: 0; width: 100%; margin: 0 0 1.6em; table-layout: fixed; }
button, input, select, textarea { margin: 0; font: inherit; color: inherit; line-height: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ======================================================================
   1. Typography
   ====================================================================== */

/* Medeo Sans: Latin and Cyrillic only, weights 400–800 (scripts/font-subset.sh). The upright face is preloaded on every
   page (app/layout.tsx); the italic is loaded only by a page that has italic text. The fallback (Arial) is sized to
   Medeo's measures, so the text does not jump when the font arrives. */
@font-face { font-family: "Medeo Sans"; src: url("/fonts/medeo-sans-v1.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Medeo Sans"; src: url("/fonts/medeo-sans-italic-v1.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Medeo Sans Fallback"; src: local("Arial"); ascent-override: 95.16%; descent-override: 27.93%; line-gap-override: 0%; size-adjust: 105.61%; }

:root {
  --font-sans: "Medeo Sans", "Medeo Sans Fallback", "Helvetica Neue", Arial, sans-serif;

  --c-text: #222222;
  --c-muted: #6b6b6b;
  --c-brand: #3768b4;
  --c-brand-dark: #2a518c;
  --c-brand-deep: #27497f;

  --fs-body: 17px;
  --lh-body: 1.6;
  --fs-small: 14px;
  --fs-ui: 15px;

  --fs-h1: 40px;
  --fs-h2: 30px;
  --fs-h3: 22px;
  --fs-h4: 18px;
  --fs-h5: 17px;
  --lh-heading: 1.2;
}

@media (max-width: 699px) {
  :root {
    --fs-body: 16px;
    --fs-h1: 28px;
    --fs-h2: 24px;
    --fs-h3: 20px;
    --fs-h4: 17px;
    --fs-h5: 16px;
  }
}

/* ---------- Font family everywhere, except icon fonts ---------- */
html body,
html body *:not(i):not(.fa):not([class*="fa-"]):not([class^="pe-7s"]):not([class*=" pe-7s"]):not([class*="vc_icon"]):not([class*="vc_tta-icon"]):not([class*="revicon"]):not([class^="icon-"]):not([class*=" icon-"]) {
  font-family: var(--font-sans) !important;
}

/* ---------- Base text ---------- */
html body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--c-text);
  font-kerning: normal;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html body :is(p, li, dd, dt, blockquote, td, th, figcaption, label) {
  font-weight: 400;
}
html body :is(p, li, dd, dt, blockquote, td, th, figcaption):not([style*="font-size"]) {
  font-size: var(--fs-body) !important;
}
html body :is(p, li, dd, dt, blockquote, figcaption):not([style*="line-height"]) {
  line-height: var(--lh-body) !important;
}
html body :is(strong, b, th) {
  font-weight: 700;
}
html body small {
  font-size: var(--fs-small);
}

/* Tables (equipment specifications) */
html body :is(td, th):not([style*="line-height"]) {
  line-height: 1.5 !important;
}

/* ---------- Headings ---------- */
html body :is(h1, h2, h3, h4, h5, h6) {
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
html body :is(h1, h2, h3, h4, h5, h6):not([style*="line-height"]) {
  line-height: var(--lh-heading) !important;
}
html body h1:not([style*="font-size"]) { font-size: var(--fs-h1) !important; }
html body h2:not([style*="font-size"]) { font-size: var(--fs-h2) !important; }
html body h3:not([style*="font-size"]) { font-size: var(--fs-h3) !important; }
html body h4:not([style*="font-size"]) { font-size: var(--fs-h4) !important; }
html body :is(h5, h6):not([style*="font-size"]) { font-size: var(--fs-h5) !important; }

/* A paragraph that holds a large inline-sized phrase (slogan on the home page) needs a heading line-height */
html body p:has(> :is(strong, span, b)[style*="font-size"]) {
  line-height: 1.25 !important;
}

/* ---------- Links inside running text ---------- */
html body #content :is(p, td, dd, blockquote, .wpb_text_column li) a:not([class*="btn"]):not([class*="button"]):not(.vc_gitem-link) {
  color: var(--c-brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
html body #content :is(p, td, dd, blockquote, .wpb_text_column li) a:not([class*="btn"]):not([class*="button"]):not(.vc_gitem-link):hover {
  color: var(--c-brand-dark);
}

/* ---------- Header ---------- */
html body .site-header .tm-home-contact-big,
html body .site-header .tm-home-contact-big a {
  font-size: 19px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
}
/* working hours and address in the header (inline 13px) */
html body .site-header [style*="font-size:13px"],
html body .site-header [style*="font-size: 13px"] {
  font-size: var(--fs-small) !important;
  line-height: 1.4 !important;
}

/* Main menu */
html body .main-navigation .menu > li > a,
html body .main-navigation .menu > li > a span {
  font-size: var(--fs-ui) !important;
  font-weight: 600 !important;
}
html body .main-navigation .sub-menu a,
html body .main-navigation .sub-menu a span {
  font-size: var(--fs-ui) !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

/* ---------- Page title banner and breadcrumbs ---------- */
html body .big-title .entry-title,
html body .big-title .entry-title span {
  line-height: 1.15 !important;
}
html body .tm_bread_crumb,
html body .tm_bread_crumb :is(li, a, span) {
  font-size: var(--fs-small) !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}
html body .tm_bread_crumb a {
  color: var(--c-muted) !important;
}

/* ---------- Sidebar: product menu ---------- */
html body .widget-title {
  font-size: var(--fs-h3) !important;
  line-height: var(--lh-heading) !important;
}
html body .widget_nav_menu .menu-item > a,
html body .widget_nav_menu .menu-item > a span {
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

/* Other menus inside content (lists of links) */
html body #content .menu a {
  font-size: var(--fs-ui);
  font-weight: 400;
}

/* ---------- Buttons ---------- */
html body :is(.btn, .vc_btn3, .simple_button, .btn-send-form, .btn-otzyv, button, input[type="submit"], input[type="button"]) {
  font-size: var(--fs-ui) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  line-height: 1.25 !important;
}

/* ---------- Accordion (FAQ on the home page) ---------- */
html body .vc_tta-title-text {
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

/* ---------- News cards (WPBakery grid) ---------- */
html body .vc_gitem-post-data-source-post_title :is(h1, h2, h3, h4, h5, h6),
html body .vc_gitem-post-data-source-post_title {
  font-size: var(--fs-h4) !important;
  line-height: 1.3 !important;
}
html body .vc_gitem-post-data-source-post_excerpt,
html body .vc_gitem-post-data-source-post_excerpt :is(p, div) {
  font-size: var(--fs-ui) !important;
  line-height: 1.5 !important;
}
html body :is(.vc_gitem-post-data-source-post_date, .vc_gitem-post-data-source-post_date *, .entry-date, .posted-on, time) {
  font-size: var(--fs-small) !important;
  color: var(--c-muted) !important;
  font-weight: 400 !important;
}

/* ---------- Contact strip in the footer and on pages ---------- */
html body .tm-home-contact-small {
  font-size: var(--fs-small) !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}
html body .tm-home-contact-big {
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
}
html body .copyright,
html body .copyright a {
  font-size: var(--fs-small) !important;
  font-weight: 400 !important;
}

/* ---------- Phones: scale down large inline sizes ---------- */
@media (max-width: 699px) {
  html body [style*="font-size: 40px"], html body [style*="font-size:40px"] { font-size: 28px !important; }
  html body [style*="font-size: 35px"], html body [style*="font-size:35px"],
  html body [style*="font-size: 34px"], html body [style*="font-size:34px"],
  html body [style*="font-size: 30px"], html body [style*="font-size:30px"] { font-size: 24px !important; }
  html body .big-title .entry-title,
  html body .big-title .entry-title span { font-size: var(--fs-h1) !important; }
}

/* Sidebar widgets (product menu): the Fixed Widget plugin of the old theme pins them with inline position:fixed.
   On the old site it never actually pinned them; with the new footer it did and the menu overlapped the footer.
   Keep the old behaviour: the sidebar scrolls with the page. */
html body .FixedWidget__fixed_widget {
  position: static !important; top: auto !important; width: auto !important; height: auto !important; transform: none !important;
}

/* ======================================================================
   2. Header, main menu, mobile menu, footer
   (components/SiteHeader, MobileMenu, SiteFooter). All classes start with rt-.
   ====================================================================== */

:root {
  --rt-blue: #0f4d9a;          /* logo colour */
  --rt-blue-700: #0b3d7d;
  --rt-blue-50: #eef3fa;
  --rt-navy: #0a2647;          /* footer */
  --rt-ink: #1b2430;
  --rt-muted: #5b6676;
  --rt-line: #e3e8ef;
  --rt-soft: #f4f7fb;
  --rt-container: 1170px;
  --rt-top-h: 96px;
  --rt-nav-h: 52px;
}

.rt-container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--rt-container);
  margin: 0 auto;
  padding: 0 15px;
}
.rt-header *, .rt-footer *, .rt-drawer * { box-sizing: border-box; }
.rt-header ul, .rt-footer ul, .rt-drawer ul { list-style: none; margin: 0; padding: 0; }
.rt-header li, .rt-footer li, .rt-drawer li { margin: 0; padding: 0; }
.rt-header svg, .rt-footer svg, .rt-drawer svg { flex: none; display: block; }
.rt-header a, .rt-footer a, .rt-drawer a { text-decoration: none; transition: color .15s, background-color .15s; }
.rt-header a:focus-visible, .rt-footer a:focus-visible, .rt-drawer a:focus-visible,
.rt-header button:focus-visible, .rt-drawer button:focus-visible {
  outline: 2px solid var(--rt-blue);
  outline-offset: 2px;
}

/* ---------- Logo ---------- */
.rt-logo { display: inline-flex; align-items: center; flex: none; }
/* Header logo keeps the size of the old site: 328 px wide on wide screens, 263 px below 1240 px, 207 px on phones. */
.rt-logo img {
  display: block; height: auto; max-width: none;
  width: var(--rt-logo-w);
  /* the PNG has 14 of 500 px of empty space left of the R; pull it back so the R lines up with the menu text */
  margin-left: calc(var(--rt-logo-w) * -14 / 500);
}
.rt-header__top .rt-logo { --rt-logo-w: 328px; }
.rt-logo--small { --rt-logo-w: 180px; }
.rt-logo--invert { --rt-logo-w: 210px; }
.rt-logo--invert img { filter: brightness(0) invert(1); }

/* The theme sets overflow:hidden on #page (to cut wide carousels), which breaks position:sticky.
   overflow:clip cuts the same way but keeps sticky working. */
html body #page { overflow: clip; }

/* ---------- Header ---------- */
/* Sticky: on scroll the top row slides away and the menu bar stays on screen. */
.rt-header {
  position: sticky;
  top: calc(-1 * var(--rt-top-h));
  z-index: 1000;
  background: #fff;
}
.rt-header__top { background: #fff; border-bottom: 1px solid var(--rt-line); }
.rt-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--rt-top-h);
}
.rt-header__contacts { display: flex; align-items: center; gap: 36px; }
.rt-header__mobile { display: none; align-items: center; gap: 4px; }

.rt-hc { display: flex; align-items: center; gap: 12px; color: var(--rt-ink); }
.rt-hc__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--rt-blue-50); color: var(--rt-blue);
}
.rt-hc__text { display: flex; flex-direction: column; }
.rt-header .rt-hc__main { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--rt-ink); }
/* the captions under the address, the e-mail and the phone: one size, the one at which the working hours are exactly
   as wide as the phone number above them (as in the footer) */
.rt-header .rt-hc__sub { display: inline-flex; align-items: center; gap: 5px; font-size: 14.2px; font-weight: 400; line-height: 1.4; color: var(--rt-muted); }
.rt-header a.rt-hc--link:hover .rt-hc__main { color: var(--rt-blue); }
.rt-header .rt-hc--phone .rt-hc__main { font-size: 20px; font-weight: 700; color: var(--rt-blue); letter-spacing: -0.005em; }
.rt-header .rt-hc--phone:hover .rt-hc__main { color: var(--rt-blue-700); }
.rt-hc--phone .rt-hc__icon { background: var(--rt-blue); color: #fff; }
/* the light circles (address, e-mail) are as big as the phone one (40px); a blue outline so their edge shows on the
   white and they read the same size */
.rt-header .rt-hc:not(.rt-hc--phone) .rt-hc__icon { box-sizing: border-box; background: var(--rt-blue-50); border: 1.5px solid var(--rt-blue); }
/* the same space between the two lines as under the phone number (its line is taller: the larger figures) */
.rt-header .rt-hc:not(.rt-hc--phone) .rt-hc__sub { margin-top: 1.5px; }


/* ---------- Main menu (desktop) ---------- */
.rt-nav { background: var(--rt-blue); box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 6px 16px -10px rgba(10, 38, 71, .45); }
.rt-nav__list { display: flex; justify-content: space-between; margin: 0 -14px !important; }
.rt-nav__item { position: relative; }
.rt-header .rt-nav__link {
  display: flex; align-items: center; gap: 4px;
  height: var(--rt-nav-h);
  padding: 0 14px;
  position: relative;
  color: rgba(255, 255, 255, .85);
  font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: .01em;
  white-space: nowrap;
  background: none;
  -webkit-tap-highlight-color: transparent;
  transition: none;
}
/* Line under the text for the current section and on hover. Shown instantly, no motion. */
.rt-header .rt-nav__link::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: 13px;
  height: 2px; border-radius: 1px;
  background: #fff;
  display: none;
  transition: none; animation: none;
}
.rt-header .rt-nav__link:hover, .rt-header .rt-nav__link:focus, .rt-header .rt-nav__link:active { color: #fff; background: none; }
.rt-header .rt-nav__link[aria-current="page"] { color: #fff; }
.rt-header .rt-nav__link[aria-current="page"]::after,
.rt-header .rt-nav__link:hover::after { display: block; }
/* The theme draws a focus ring on every clicked link (a:focus, square, ignores rounded corners).
   Site-wide: no ring after a mouse click; a ring for keyboard users that follows the element's rounding. */
html body a:focus:not(:focus-visible), html body button:focus:not(:focus-visible), html body summary:focus:not(:focus-visible) { outline: none; }
html body a:focus-visible { outline: 2px solid var(--rt-blue); outline-offset: 2px; border-radius: inherit; }
.rt-product:focus-within { border-color: #c9d6e8; }
/* The theme draws a focus ring on every clicked link (a:focus); keep it for keyboard users only. */
.rt-header a:focus:not(:focus-visible), .rt-footer a:focus:not(:focus-visible), .rt-drawer a:focus:not(:focus-visible),
.rt-header button:focus:not(:focus-visible), .rt-drawer button:focus:not(:focus-visible) { outline: none; }
.rt-header .rt-nav__link:focus-visible { outline: 2px solid #fff; outline-offset: -8px; border-radius: 4px; }

/* ---------- Icon buttons (phone, hamburger) ---------- */
.rt-header .rt-iconbtn, .rt-drawer .rt-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; box-shadow: none;
  color: var(--rt-blue); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s;
}
.rt-header .rt-iconbtn:hover, .rt-drawer .rt-iconbtn:hover,
.rt-header .rt-iconbtn:active, .rt-drawer .rt-iconbtn:active { background: var(--rt-blue-50); color: var(--rt-blue); }

/* Search in the menu bar: a round button at its end (components/MainNav) */
.rt-nav__item--search { display: flex; align-items: center; padding: 0 6px; }
.rt-header .rt-nav__search {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: rgba(255, 255, 255, .85); background: none;
}
.rt-header .rt-nav__search:hover, .rt-header .rt-nav__search[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .14); }
.rt-header .rt-nav__search:focus-visible { outline: 2px solid #fff; outline-offset: 0; border-radius: 50%; }

/* ---------- Mobile menu panel ---------- */
.rt-drawer { position: fixed; inset: 0; z-index: 2000; visibility: hidden; transition: visibility 0s .25s; }
.rt-drawer.is-open { visibility: visible; transition: none; }
.rt-drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 38, 71, .5); opacity: 0; transition: opacity .25s; }
.rt-drawer.is-open .rt-drawer__backdrop { opacity: 1; }
.rt-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(400px, 100%);
  display: flex; flex-direction: column;
  background: #fff;
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform .25s ease;
}
.rt-drawer.is-open .rt-drawer__panel { transform: none; }
.rt-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 10px 0 20px; flex: none;
  border-bottom: 1px solid var(--rt-line);
}
.rt-mnav__item { border-bottom: 1px solid var(--rt-line); }
.rt-drawer .rt-mnav__link {
  display: flex; align-items: center;
  min-height: 54px; padding: 0 20px;
  color: var(--rt-ink); font-size: 17px; font-weight: 500; line-height: 1.3;
}
.rt-drawer .rt-mnav__link:hover { color: var(--rt-blue); }
.rt-drawer .rt-mnav__link[aria-current="page"] { color: var(--rt-blue); box-shadow: inset 3px 0 0 var(--rt-blue); background: var(--rt-soft); }
.rt-drawer__contacts { padding: 24px 20px 32px; display: flex; flex-direction: column; gap: 10px; }
.rt-drawer .rt-drawer__phone { display: inline-flex; align-items: center; gap: 10px; color: var(--rt-blue); font-size: 21px; font-weight: 700; }
.rt-drawer .rt-drawer__muted { margin: -4px 0 6px 30px !important; color: var(--rt-muted); font-size: 14px !important; line-height: 1.4 !important; }
.rt-drawer .rt-drawer__line { display: flex; align-items: center; gap: 10px; margin: 0 !important; color: var(--rt-ink); font-size: 15px !important; line-height: 1.4 !important; }
.rt-drawer__line svg { color: var(--rt-muted); }

/* ---------- Footer ---------- */
.rt-footer {
  background: var(--rt-navy);
  color: rgba(255, 255, 255, .72);
  padding: 56px 0 48px;
}
/* the bottom line uses the same columns: the credit stands right under Rutube */
.rt-footer__grid, .rt-footer .rt-footer__bottom {
  display: grid;
  grid-template-columns: 1.15fr 1.6fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.rt-footer a { color: rgba(255, 255, 255, .82); }
.rt-footer a:hover { color: #fff; }
.rt-footer .rt-footer__phone { display: block; margin: 6px 0 14px; color: #fff; font-size: 22px; font-weight: 700; line-height: 1.2; }
.rt-footer .rt-footer__contacts li {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
  font-size: 15px !important; line-height: 1.4 !important;
}
.rt-footer .rt-footer__contacts li:last-child { margin-bottom: 0; }
.rt-footer__contacts svg { opacity: .55; }
.rt-footer__nav ul { columns: 2; column-gap: 24px; }
.rt-footer .rt-footer__nav li { break-inside: avoid; margin-bottom: 10px; font-size: 15px !important; line-height: 1.4 !important; }
.rt-footer .rt-footer__title { margin: 0 0 12px !important; font-size: 15px !important; line-height: 1.4 !important; }
.rt-footer .rt-footer__social .rt-footer__title { margin-bottom: -2px !important; color: #fff; font-weight: 600; }
.rt-footer .rt-footer__title a { color: #fff; font-weight: 600; }
.rt-footer__social { display: flex; flex-direction: column; gap: 14px; }
/* the bottom line: copyright on the left, the developer on the right */
.rt-footer .rt-footer__bottom { align-items: center; row-gap: 28px; margin-top: 28px; }  /* the same space above and below the line */
/* a thin line across the content width between the footer and the bottom line */
.rt-footer .rt-footer__bottom::before { content: ""; grid-column: 1 / -1; height: 1.5px; background: rgba(255, 255, 255, .35); }
.rt-footer .rt-footer__bottom .rt-footer__credit { grid-column: -2; }
.rt-footer .rt-footer__copyright { display: flex; flex-direction: column; margin: 0; color: rgba(255, 255, 255, .45); font-size: 13px !important; line-height: 1.4; }
.rt-footer .rt-footer__credit { color: rgba(255, 255, 255, .45); font-size: 13px; line-height: 1.4; }
.rt-footer .rt-footer__legal { display: flex; flex-direction: column; align-items: flex-start; margin: 0; font-size: 13px !important; line-height: 1.4; }
.rt-footer .rt-footer__legal a, .rt-footer .rt-footer__linkbtn { color: rgba(255, 255, 255, .65); }
.rt-footer .rt-footer__linkbtn { padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.rt-footer .rt-footer__linkbtn:hover { color: #fff; }
/* buttons that look like links («Настройки cookie»): the text around them decides the type, not the site's button style */
html body button:is(.rt-footer__linkbtn, .rt-doc__linkbtn) { font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important; letter-spacing: inherit !important; }
.rt-footer .rt-footer__credit a { color: rgba(255, 255, 255, .65); }
/* the logo sits in a box as wide as the Rutube icon above, centred, and the text starts where theirs does */
.rt-footer .rt-footer__credit { display: flex; align-items: center; gap: 12px; }
.rt-footer .rt-footer__credit-mark { flex: none; display: flex; justify-content: center; width: 44px; }
.rt-footer .rt-footer__credit-text { display: flex; flex-direction: column; white-space: nowrap; }
.rt-footer .rt-footer__credit-logo { display: block; width: auto; height: 26px; opacity: .85; }
.rt-footer .rt-footer__credit-mark:hover .rt-footer__credit-logo { opacity: 1; }
.rt-footer .rt-footer__credit a:hover { color: #fff; }
.rt-footer .rt-social { display: flex; align-items: center; gap: 12px; color: #fff; }
.rt-social__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  transition: background-color .15s;
}
.rt-social:hover .rt-social__icon { background: rgba(255, 255, 255, .16); }
.rt-social__icon--img img { width: 24px; height: 24px; border-radius: 5px; }
.rt-social__small { display: block; font-size: 13px; line-height: 1.3; color: rgba(255, 255, 255, .6); }
.rt-social__big { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 1239px) {
  .rt-header__top .rt-logo { --rt-logo-w: 263px; }
}
@media (max-width: 1199px) {
  .rt-header__contacts { gap: 24px; }
  .rt-header__contacts > .rt-hc:first-child { display: none; } /* address: still in the footer and the mobile menu */
  .rt-header .rt-nav__link { padding: 0 9px; font-size: 14.5px; }
  .rt-header .rt-nav__link::after { left: 9px; right: 9px; }
  .rt-nav__list { margin: 0 -9px !important; }
  .rt-footer__grid, .rt-footer .rt-footer__bottom { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023px) {
  :root { --rt-top-h: 72px; }
  .rt-header { top: 0; box-shadow: 0 4px 14px -8px rgba(10, 38, 71, .35); }
  .rt-header__top { border-bottom: 0; }
  .rt-header__contacts, .rt-nav { display: none; }
  .rt-header__mobile { display: flex; }
  .rt-header__top .rt-logo { --rt-logo-w: 207px; }
}
@media (max-width: 699px) {
  .rt-footer { padding: 40px 0 88px; } /* room for the theme's scroll-up button */
  .rt-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .rt-footer__social { flex-direction: row; flex-wrap: wrap; gap: 20px 28px; }
  .rt-footer .rt-footer__bottom { grid-template-columns: 1fr; gap: 16px; }
  .rt-footer .rt-footer__bottom .rt-footer__credit { grid-column: auto; }
  .rt-footer .rt-footer__social .rt-footer__title { flex-basis: 100%; margin-bottom: 0 !important; }
}

/* ======================================================================
   3. Home page (components/home). Classes start with rt-.
   Sizes use !important where section 1 (typography) sets them with !important for plain tags.
   ====================================================================== */
.rt-page { display: block; }
.rt-page *, .rt-page *::before, .rt-page *::after { box-sizing: border-box; }
.rt-page ul { list-style: none; margin: 0; padding: 0; }
.rt-page li { margin: 0; padding: 0; }
.rt-page img { max-width: 100%; height: auto; }
.rt-page a { text-decoration: none; }

.rt-section { padding: 64px 0; }
.rt-section--soft { background: var(--rt-soft); }
.rt-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.rt-page .rt-section__title {
  margin: 0 0 28px; color: var(--rt-ink);
  font-size: 30px !important; font-weight: 700; line-height: 1.2 !important; letter-spacing: -0.015em;
}
.rt-section__head .rt-section__title { margin: 0; }
.rt-page .rt-section__title--main { font-size: 38px !important; }
.rt-page .rt-section__more { flex: none; color: var(--rt-blue); font-size: 16px; font-weight: 600; white-space: nowrap; }
.rt-page .rt-section__more::after { content: " →"; }
.rt-page .rt-section__more:hover { color: var(--rt-blue-700); text-decoration: underline; text-underline-offset: 4px; }

/* Banner */
.rt-banner { padding-top: 32px; }
.rt-banner[hidden] { display: none; }
.rt-banner__link, .rt-banner picture { display: block; }
.rt-banner img { display: block; width: 100%; height: auto; border-radius: 12px; }

/* Catalog */
.rt-catalog { padding-top: 48px; }
.rt-catalog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rt-product {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--rt-line); border-radius: 14px; overflow: hidden;
}
.rt-product:hover { border-color: #c9d6e8; box-shadow: 0 12px 28px -16px rgba(10, 38, 71, .35); }
.rt-product__image { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; border-bottom: 1px solid var(--rt-line); }
.rt-page .rt-product__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.rt-product__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.rt-page .rt-product__title { margin: 0 0 10px; font-size: 17px !important; line-height: 1.35 !important; font-weight: 600; }
.rt-page .rt-product__title a { color: var(--rt-ink); }
.rt-page .rt-product__title a:hover { color: var(--rt-blue); }
.rt-product__model { display: block; margin-bottom: 2px; color: var(--rt-blue); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.rt-page .rt-product__text { flex: 1; margin: 0 0 18px; color: var(--rt-muted); font-size: 15px !important; line-height: 1.55 !important; white-space: pre-line; }
.rt-page .rt-btn {
  align-self: flex-start;
  display: inline-flex; align-items: center; height: 42px; padding: 0 22px;
  border-radius: 999px; background: var(--rt-blue); color: #fff;
  font-size: 15px; font-weight: 600;
}
.rt-page .rt-btn:hover { background: var(--rt-blue-700); color: #fff; }

/* News */
.rt-news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rt-card { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--rt-line); }
.rt-card:hover { box-shadow: 0 12px 28px -16px rgba(10, 38, 71, .35); }
.rt-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
/* the picture is shown whole, in its own proportions — never cropped */
.rt-card__image { display: block; background: var(--rt-blue-50); }
.rt-page .rt-card__image img { display: block; width: 100%; height: auto; }
/* the whole photo, never cropped, its height limited; a photo narrower than the card (a tall one) stands in the middle
   and its own blurred copy fills the sides, so there are no empty strips */
.rt-card__image { position: relative; overflow: hidden; }
.rt-page .rt-card__image img { position: relative; width: auto; max-width: 100%; max-height: 260px; margin: 0 auto; }
.rt-page .rt-card__image img.rt-card__backdrop {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
  object-fit: cover; filter: blur(18px); transform: scale(1.2);
}
.rt-page .rt-card--featured .rt-card__image img { max-height: 480px; }
@media (max-width: 699px) { .rt-page .rt-card--featured .rt-card__image img { max-height: 300px; } }
/* a news item without its own picture: the logo on the light background, not stretched */
.rt-card__image--logo { display: flex; align-items: center; justify-content: center; height: 200px; }
.rt-card--featured .rt-card__image--logo { height: 320px; }
.rt-page .rt-card__image--logo img { width: 60%; max-width: 260px; max-height: none; height: auto; }
.rt-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.rt-card__date { color: var(--rt-muted); font-size: 14px; }
.rt-card__title {
  color: var(--rt-ink); font-size: 17px; font-weight: 600; line-height: 1.35;
}
.rt-card__link:hover .rt-card__title { color: var(--rt-blue); }
.rt-card__lead { display: flex; flex-direction: column; gap: 10px; }
.rt-card__list { display: flex; flex-direction: column; gap: 6px; padding-left: 18px; color: var(--rt-muted); font-size: 15px; line-height: 1.5; }
.rt-card__item { display: list-item; list-style: disc; }
.rt-card__text {
  color: var(--rt-muted); font-size: 15px; line-height: 1.5;
}

/* Production */
.rt-production__grid { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.rt-page .rt-production__text p { margin: 0 0 16px; color: var(--rt-ink); font-size: 18px !important; line-height: 1.65 !important; }
.rt-page .rt-production__text p a { color: var(--rt-blue); text-decoration: underline; text-underline-offset: 3px; }
.rt-production__sign { display: block; margin-top: 32px; width: 180px; }
.rt-page .rt-production__photo img { display: block; width: 100%; border-radius: 14px; }
.rt-production__inset { display: none; }  /* the phone's circle in the text (see max-width: 699px) */

@media (max-width: 1023px) {
  .rt-catalog__grid, .rt-news__grid { grid-template-columns: repeat(2, 1fr); }
  .rt-production__grid { grid-template-columns: 1fr 260px; gap: 32px; }
}
@media (max-width: 699px) {
  .rt-section { padding: 40px 0; }
  .rt-banner { padding-top: 16px; }
  .rt-banner img { border-radius: 8px; }
  .rt-catalog { padding-top: 32px; }
  .rt-section__head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 20px; }
  .rt-page .rt-section__title { font-size: 24px !important; margin-bottom: 20px; }
  .rt-page .rt-section__title--main { font-size: 26px !important; }
  .rt-catalog__grid, .rt-news__grid { grid-template-columns: 1fr; gap: 16px; }
  /* the photo: a circle inside the text, under the title, the text flows round it */
  .rt-production__grid { grid-template-columns: minmax(0, 1fr); }
  .rt-production__photo { display: none; }
  .rt-production__inset { float: right; display: block; width: 120px; height: 120px; margin: 4px 0 10px 16px; overflow: hidden; border-radius: 50%; shape-outside: circle(50%); }
  .rt-page .rt-production__inset img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
  .rt-page .rt-production__text p { font-size: 17px !important; }
}

/* Newest news item: twice as wide on desktop, wide picture with the text under it */
@media (min-width: 1024px) {
  .rt-card--featured { grid-column: span 2; }
  .rt-card--featured .rt-card__body { padding: 28px 28px 30px; }
  .rt-card--featured .rt-card__title { font-size: 22px; line-height: 1.3; }
  .rt-card--featured .rt-card__text { font-size: 16px; }
  .rt-card--featured .rt-card__list { font-size: 16px; }
}

/* ======================================================================
   4. Shared blocks: questions and answers (components/Faq), page switcher (components/Pagination), scroll-to-top button
   ====================================================================== */
.rt-faq *, .rt-faq *::before, .rt-faq *::after { box-sizing: border-box; }
.rt-faq .rt-faq__title {
  margin: 0 0 28px; color: var(--rt-ink);
  font-size: 30px !important; font-weight: 700; line-height: 1.2 !important; letter-spacing: -0.015em;
}
.rt-faq__columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; align-items: start; }
.rt-faq__column { display: flex; flex-direction: column; gap: 12px; }
.rt-faq__item { background: #fff; border: 1px solid var(--rt-line); border-radius: 12px; }
.rt-faq__item[open] { border-color: #c9d6e8; }
.rt-faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
}
.rt-faq__q::-webkit-details-marker { display: none; }
.rt-faq .rt-faq__q h3 { margin: 0; color: var(--rt-ink); font-size: 17px !important; font-weight: 600; line-height: 1.4 !important; letter-spacing: 0; }
.rt-faq__q svg { flex: none; color: var(--rt-blue); transition: transform .24s cubic-bezier(.2, .7, .3, 1); }
/* data-expanded is set at once on click (the arrow turns with the animation); [open] covers the no-JavaScript case */
.rt-faq__item[open]:not([data-expanded]) .rt-faq__q svg, .rt-faq__item[data-expanded="true"] .rt-faq__q svg { transform: rotate(180deg); }
.rt-faq__body { overflow: hidden; }
.rt-faq__q:focus { outline: none; }
.rt-faq__q:focus-visible { outline: 2px solid var(--rt-blue); outline-offset: 2px; border-radius: 12px; }
.rt-faq .rt-faq__a { margin: 0; padding: 0 20px 20px; color: var(--rt-muted); font-size: 16px !important; line-height: 1.6 !important; }
.rt-faq .rt-faq__a a { color: var(--rt-blue); text-decoration: underline; text-decoration-color: rgba(15, 77, 154, .35); text-underline-offset: 3px; }
.rt-faq .rt-faq__a a:hover { text-decoration-color: currentColor; }

.rt-scrolltop {
  position: fixed; right: 20px; bottom: calc(20px + var(--rt-banner-h, 0px)); z-index: 900;  /* above the cookie banner while it is open */
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--rt-line); border-radius: 50%; background: #fff; color: var(--rt-blue);
  box-shadow: 0 8px 20px -8px rgba(10, 38, 71, .35);
  cursor: pointer;
}
.rt-scrolltop[hidden] { display: none; }
.rt-scrolltop:hover { background: var(--rt-blue-50); color: var(--rt-blue); }
.rt-scrolltop svg { transform: rotate(180deg); }
.rt-scrolltop:focus { outline: none; }
.rt-scrolltop:focus-visible { outline: 2px solid var(--rt-blue); outline-offset: 3px; }

@media (max-width: 699px) {
  .rt-faq .rt-faq__title { font-size: 24px !important; margin-bottom: 20px; }
  .rt-faq__columns { grid-template-columns: 1fr; }
}

/* Page switcher */
.rt-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 36px; }
.rt-pagination .rt-pagination__page, .rt-pagination .rt-pagination__step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0;
  border: 0; border-radius: 50%; background: transparent;
  color: var(--rt-ink); font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none;
}
.rt-pagination a.rt-pagination__page:hover, .rt-pagination .rt-pagination__step:hover { background: var(--rt-blue-50); color: var(--rt-blue); }
.rt-pagination .rt-pagination__page[aria-current="page"] { background: var(--rt-blue); border-color: var(--rt-blue); color: #fff; }
.rt-pagination__step--prev svg { transform: rotate(90deg); }
.rt-pagination__step--next svg { transform: rotate(-90deg); }
.rt-pagination__gap { min-width: 24px; text-align: center; color: var(--rt-muted); }
.rt-pagination a:focus:not(:focus-visible) { outline: none; }
.rt-pagination a:focus-visible { outline: 2px solid var(--rt-blue); outline-offset: 2px; }

/* ======================================================================
   5. Inner pages: page title with breadcrumbs, article text (equipment section, machine pages)
   ====================================================================== */
.rt-pagehead { background: var(--rt-soft); border-bottom: 1px solid var(--rt-line); padding: 28px 0 32px; }
/* every page under a header with crumbs: one gap between the header and the content */
.rt-pagehead + .rt-section { padding-top: 40px; }
.rt-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 14px !important; padding: 0 !important; list-style: none; }
.rt-page .rt-crumbs li { margin: 0; padding: 0; color: var(--rt-muted); font-size: 14px !important; line-height: 1.5 !important; }
.rt-crumbs li + li::before { content: "/"; margin: 0 8px; color: #b7c0cc; }
.rt-page .rt-crumbs a { color: var(--rt-muted); text-decoration: none; }
.rt-page .rt-crumbs a:hover { color: var(--rt-blue); text-decoration: underline; text-underline-offset: 3px; }
.rt-page .rt-crumbs [aria-current="page"] { color: var(--rt-ink); }
.rt-page .rt-pagehead__title {
  margin: 0; color: var(--rt-ink);
  font-size: 38px !important; font-weight: 700; line-height: 1.15 !important; letter-spacing: -0.015em;
}
.rt-accent { color: var(--rt-blue); }

/* a card without a type line (rotary table): the model is the whole title */
.rt-product__title a:only-child .rt-product__model:only-child { margin-bottom: 0; }

/* Article: the moved content of the old pages, only restyled */
.rt-article { color: var(--rt-ink); }
.rt-article::after { content: ""; display: block; clear: both; }
.rt-page .rt-article :is(h2, h3, h4) { margin: 36px 0 14px; color: var(--rt-ink); font-weight: 700; letter-spacing: -0.01em; text-align: left; }
.rt-page .rt-article h2 { font-size: 26px !important; line-height: 1.25 !important; }
.rt-page .rt-article h3 { font-size: 21px !important; line-height: 1.3 !important; }
.rt-page .rt-article h4 { font-size: 18px !important; line-height: 1.35 !important; }
.rt-page .rt-article > :first-child, .rt-page .rt-article .rt-col > :first-child { margin-top: 0; }
.rt-page .rt-article p { margin: 0 0 14px; font-size: 17px !important; line-height: 1.65 !important; text-align: left; }
/* A quote in a text (the words of a person in a news item): set off by a line in the brand colour */
.rt-page .rt-article blockquote { margin: 0 0 14px; padding: 2px 0 2px 20px; border-left: 3px solid var(--rt-blue); }
.rt-page .rt-article blockquote > :last-child { margin-bottom: 0; }
.rt-page .rt-article :is(ul, ol) { margin: 0 0 18px; padding-left: 24px; }
.rt-page .rt-article ul { list-style: disc outside !important; }
.rt-page .rt-article ol { list-style: decimal outside !important; }
.rt-page .rt-article li { display: list-item; }
.rt-page .rt-article li { margin: 0 0 8px; font-size: 17px !important; line-height: 1.6 !important; text-align: left; }
.rt-page .rt-article ul > li::marker { color: var(--rt-blue); }
.rt-page .rt-article ol > li::marker { color: var(--rt-blue); font-weight: 600; }
.rt-page .rt-article a { color: var(--rt-blue); text-decoration: underline; text-underline-offset: 3px; }
.rt-page .rt-article a:hover { color: var(--rt-blue-700); }
.rt-page .rt-article strong { font-weight: 700; }
.rt-page .rt-article u { text-decoration: none; }  /* the old pages underlined sub-headings: keep them bold only */
.rt-page .rt-article em { color: var(--rt-muted); }

.rt-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; margin: 8px 0 24px; }
.rt-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rt-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rt-col { min-width: 0; }

.rt-figure { margin: 0 0 20px; }
.rt-page .rt-figure img, .rt-page .rt-article img.rt-center {
  display: block; width: 100%; height: auto; max-width: 100%;
  border: 1px solid var(--rt-line); border-radius: 14px; background: #fff;
}
.rt-page .rt-article img { max-width: 100%; height: auto; }
.rt-page .rt-article img.rt-center { margin: 0 auto 20px; width: auto; }
.rt-page .rt-article img.rt-float-right { float: right; width: 100%; margin: 4px 0 14px 24px; border-radius: 10px; }
.rt-page .rt-article img.rt-float-left { float: left; width: 100%; margin: 4px 24px 14px 0; border-radius: 10px; }

.rt-video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 20px; border-radius: 14px; overflow: hidden; background: #0b1220; }
.rt-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.rt-table { margin: 8px 0 24px; overflow-x: auto; border: 1px solid var(--rt-line); border-radius: 14px; }
.rt-table table { width: 100%; border-collapse: collapse; margin: 0; }
.rt-page .rt-table table { border: 0 !important; }  /* the theme's square frame showed inside the rounded corners */
/* the old theme's «responsive tables» plugin turns cells into blocks on phones: keep a normal two-column table */
.rt-page .rt-table table { display: table !important; }
.rt-page .rt-table tbody { display: table-row-group !important; }
.rt-page .rt-table tr { display: table-row !important; }
.rt-page .rt-table :is(td, th) { display: table-cell !important; width: auto; height: auto !important; min-height: 0 !important; }
.rt-page .rt-table :is(td, th)::before { content: none !important; display: none !important; }
.rt-page .art-table { display: none !important; }  /* the plugin's copy of each table */
.rt-page .rt-table td, .rt-page .rt-table th {
  padding: 13px 18px; border: 0; border-bottom: 1px solid var(--rt-line);
  font-size: 16px !important; line-height: 1.5 !important; text-align: left; vertical-align: top;
}
.rt-table tr:last-child td { border-bottom: 0; }
.rt-page .rt-article .rt-table td p { margin: 0; font-size: inherit !important; line-height: inherit !important; }
.rt-table tr:nth-child(odd) td { background: var(--rt-soft); }
.rt-page .rt-table td:first-child { width: 36%; color: var(--rt-muted); font-weight: 600; }
.rt-sep { clear: both; margin: 28px 0; border: 0; border-top: 1px solid var(--rt-line); }

/* the heading of a text block on the section and landing pages: the same size as the other block headings */
.rt-page .rt-article--text > h2:first-child { margin: 0 0 20px; font-size: 30px !important; line-height: 1.2 !important; letter-spacing: -0.015em; }
@media (max-width: 699px) { .rt-page .rt-article--text > h2:first-child { font-size: 24px !important; } }

@media (max-width: 1023px) {
  .rt-row--3, .rt-row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  .rt-pagehead { padding: 20px 0 22px; }
  .rt-page .rt-pagehead__title { font-size: 26px !important; }
  .rt-row, .rt-row--3, .rt-row--4 { grid-template-columns: 1fr; gap: 0; }
  .rt-page .rt-article h2 { font-size: 22px !important; }
  .rt-page .rt-article img.rt-float-right, .rt-page .rt-article img.rt-float-left { float: none; display: block; margin: 8px 0 16px; }
  .rt-page .rt-table td:first-child { width: 42%; }
  .rt-page .rt-table td, .rt-page .rt-table th { padding: 11px 12px; font-size: 15px !important; }
}

/* Machine pages: the top — a gallery of the photos, drawing, videos and certificate, the key features beside it
   (components/Gallery.tsx; without scripts the pictures stay one under another) */
.rt-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; margin: 8px 0 36px; }
.rt-hero--solo { grid-template-columns: minmax(0, 1fr); }
.rt-hero__side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.rt-hero__info, .rt-hero__text { padding: 24px 28px 8px; background: var(--rt-soft); border: 1px solid var(--rt-line); border-radius: 16px; }
.rt-page .rt-article .rt-hero__info li { margin-bottom: 12px; }
.rt-page .rt-article .rt-hero__info h2 { margin: 22px 0 10px; font-size: 20px !important; line-height: 1.3 !important; }
.rt-page .rt-article .rt-hero__info > :first-child { margin-top: 0; }
.rt-gallery.is-gallery { display: grid; grid-template-columns: minmax(0, 1fr); }
.rt-gallery.is-gallery > .rt-gallery__item { display: none; grid-area: 1 / 1; }
.rt-gallery.is-gallery > .rt-gallery__item.is-active {
  display: flex; flex-direction: column; justify-content: center; aspect-ratio: 4 / 3; padding: 16px;
  background: #fff; border: 1px solid var(--rt-line); border-radius: 16px; overflow: hidden;
}
.rt-hero--solo .rt-gallery.is-gallery > .rt-gallery__item.is-active { aspect-ratio: 16 / 9; }
/* a gallery inside the text (news): a lower view, the page width would make a 4:3 one too tall */
.rt-article > .rt-gallery.is-gallery > .rt-gallery__item.is-active { aspect-ratio: 16 / 9; max-height: 560px; }
.rt-article > .rt-gallery { margin: 8px 0 28px; }
.rt-gallery.is-gallery .rt-figure { flex: 1 1 auto; min-height: 0; display: flex; justify-content: center; margin: 0; }
.rt-gallery.is-gallery .rt-figure > a { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; justify-content: center; }  /* some photos are wrapped in a link to the original */
.rt-page .rt-gallery.is-gallery .rt-figure img { width: 100%; height: 100%; object-fit: contain; border: 0; border-radius: 0; cursor: zoom-in; }
.rt-page .rt-article .rt-gallery.is-gallery .rt-gallery__item p { flex: none; margin: 10px 0 0; text-align: center; font-size: 14px !important; }
.rt-gallery.is-gallery > .rt-gallery__item.is-active:has(.rt-video) { padding: 0; background: #0b1220; border-color: #0b1220; }
.rt-gallery.is-gallery .rt-video { margin: 0; border-radius: 0; }
.rt-gallery__nav {
  grid-area: 1 / 1; align-self: center; z-index: 1; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: 0 12px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--rt-blue); box-shadow: 0 2px 10px rgba(10, 38, 71, .18); cursor: pointer;
}
.rt-gallery__nav--prev { justify-self: start; }
.rt-gallery__nav--next { justify-self: end; }
.rt-gallery__nav:hover { background: #fff; color: var(--rt-blue-700); }
/* seven in a row across the full width of the gallery (a video and six photos fit one row) */
.rt-gallery__thumbs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.rt-gallery__thumb {
  position: relative; width: 100%; aspect-ratio: 4 / 3; padding: 4px; overflow: hidden; cursor: pointer;
  background: #fff; border: 1px solid var(--rt-line); border-radius: 10px;
}
.rt-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.rt-gallery__thumb[aria-current="true"] { border-color: var(--rt-blue); box-shadow: 0 0 0 1px var(--rt-blue); }
.rt-gallery__thumb--video { padding: 0; background: #0b1220; border-color: #0b1220; }
.rt-gallery__play {
  position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--rt-blue);
}
/* a tablet held upright (700–1023, from the iPad mini at 744 up): the gallery and the card stay side by side, the thumbnails five in a row */
@media (min-width: 700px) and (max-width: 1023px) {
  .rt-hero:not(.rt-hero--solo) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .rt-gallery__thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
}
@media (max-width: 699px) {
  .rt-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .rt-hero__info, .rt-hero__text { padding: 20px 18px 6px; }
  .rt-hero__text { padding-bottom: 20px; }
  .rt-gallery__thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .rt-gallery__nav { width: 38px; height: 38px; margin: 0 8px; }
}

/* Machine pages without the labeller scheme (ROLS-210, ROLS-210M): text and a picture or video side by side;
   the specifications table next to the box requirements */
.rt-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; margin: 8px 0 40px; }
.rt-split--photo { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.rt-split--specs { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.rt-split .rt-figure, .rt-split .rt-video { margin: 0; }
.rt-page .rt-split--specs .rt-table td:first-child { width: 50%; }
.rt-split__a > :last-child, .rt-split__b > :last-child { margin-bottom: 0 !important; }
.rt-page .rt-article .rt-split h2 { margin-top: 0; }
/* the table sits in a card like the box requirements beside it: the same top edge and the same title */
.rt-split--specs > .rt-split__a { padding: 22px 24px 24px; background: var(--rt-soft); border: 1px solid var(--rt-line); border-radius: 16px; }
.rt-page .rt-article .rt-split--specs > .rt-split__a > :is(h2, h3):first-child { margin: 0 0 14px; font-size: 18px !important; line-height: 1.35 !important; }
.rt-split--specs .rt-table { margin: 0; }
.rt-group .rt-figure { margin: 4px 0 16px; }
.rt-page .rt-group .rt-figure img { width: auto; max-height: 340px; margin: 0 auto; }  /* a tall photo must not stretch the card */
/* the rotary table: its text comes first in the page, but the photos stand on the left, as on every machine page */
.rt-hero--text { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.rt-hero--text > .rt-gallery { order: -1; }
.rt-hero__text { padding-bottom: 24px; }  /* the text card of the rotary table, like the others */
.rt-hero__text > :last-child { margin-bottom: 0 !important; }
/* a numbered list of three (the kinds of rotary tables): three cards in a row */
.rt-page .rt-article .rt-groups--wide ol:has(> li:nth-child(3):last-child) {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; list-style-position: inside !important;
}
.rt-page .rt-article .rt-groups--wide ol:has(> li:nth-child(3):last-child) > li {
  margin: 0; padding: 16px 18px; background: #fff; border: 1px solid var(--rt-line); border-radius: 12px;
}
@media (min-width: 700px) and (max-width: 1023px) {
  .rt-split, .rt-split--photo, .rt-split--specs { gap: 24px; }
}
@media (max-width: 699px) {
  .rt-split, .rt-split--photo, .rt-split--specs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .rt-hero--text { grid-template-columns: minmax(0, 1fr); }
  .rt-page .rt-article .rt-groups--wide ol:has(> li:nth-child(3):last-child) { grid-template-columns: minmax(0, 1fr); }
}

/* a highlighted block inside an article (the example of a production line on the rotary table page) */
.rt-note { margin: 36px 0 24px; padding: 28px 32px 14px; background: var(--rt-blue-50); border-radius: 22px; }
.rt-page .rt-article .rt-note h3 { margin: 0 0 14px; font-size: 22px !important; line-height: 1.3 !important; color: var(--rt-blue-700); }
@media (max-width: 699px) { .rt-note { padding: 22px 18px 8px; border-radius: 16px; } }

/* «Производство»: a title with a button on the same line; the advantages as cards with their icons */
.rt-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 0 0 24px; }
.rt-page .rt-article .rt-section-head h2 { margin: 0; }
.rt-page .rt-article a.rt-btn { color: #fff; text-decoration: none; }  /* not the blue underlined link of the text */
.rt-page .rt-article a.rt-btn:hover { color: #fff; }
.rt-advantages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 0 48px; }
.rt-advantage { display: flex; align-items: center; gap: 18px; padding: 20px 22px; background: var(--rt-soft); border: 1px solid var(--rt-line); border-radius: 16px; }
.rt-page .rt-article .rt-advantage img { flex: none; width: 64px; height: auto; }
.rt-page .rt-article .rt-advantage p { margin: 0; font-size: 16px !important; line-height: 1.45 !important; }
@media (max-width: 1023px) { .rt-advantages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) { .rt-advantages { grid-template-columns: minmax(0, 1fr); gap: 12px; } .rt-advantage { padding: 16px 18px; } }

/* the photo view over the page (components/lightbox.ts): no animation, round buttons */
html.rt-noscroll { overflow: hidden; }
.rt-lightbox {
  position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 64px 88px 56px; background: rgba(8, 20, 38, .92);
}
.rt-lightbox__figure { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; margin: 0; }
.rt-lightbox__img { display: block; max-width: 100%; max-height: 100%; min-height: 0; width: auto; height: auto; object-fit: contain; border-radius: 8px; background: #fff; }
.rt-lightbox__caption { flex: none; margin-top: 12px; color: rgba(255, 255, 255, .85); font-size: 15px; text-align: center; }
.rt-lightbox__btn {
  position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer;
}
.rt-lightbox__btn:hover { background: rgba(255, 255, 255, .26); }
.rt-lightbox__close { top: 12px; right: 16px; }
.rt-lightbox__prev { left: 20px; top: 50%; margin-top: -24px; }
.rt-lightbox__next { right: 20px; top: 50%; margin-top: -24px; }
.rt-lightbox__count { position: absolute; top: 24px; left: 24px; color: rgba(255, 255, 255, .7); font-size: 14px; }
@media (max-width: 699px) {
  .rt-lightbox { padding: 60px 8px 76px; }
  .rt-lightbox__prev, .rt-lightbox__next { top: auto; bottom: 14px; margin-top: 0; }
  .rt-lightbox__prev { left: calc(50% - 60px); }
  .rt-lightbox__next { right: calc(50% - 60px); }
}

/* a news article (components/news/NewsArticle.tsx): the main picture on the left (whole, rounded), the date and the
   text on the right; without a picture the text takes the whole width; then the next / previous news */
.rt-news-layout {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr;
  grid-template-areas: "cover body" "nav body"; gap: 28px 40px; align-items: start;
}
.rt-news-layout > .rt-news-cover { grid-area: cover; }
.rt-news-layout > .rt-news-body { grid-area: body; min-width: 0; }
.rt-news-body > .rt-article { margin-bottom: 60px; }  /* room under the text of a news item (as the old theme had) */
.rt-news-layout > .rt-news-nav--side { grid-area: nav; }
.rt-news-layout--text { grid-template-columns: minmax(0, 1fr); grid-template-areas: "body"; }
.rt-news-cover { margin: 0; }
.rt-page .rt-news-cover img { display: block; width: 100%; height: auto; border: 0; border-radius: 16px; }
.rt-news-date { display: block; margin: 0 0 14px; color: var(--rt-muted); font-size: 15px; }
/* the other news under the picture: one under another, the button last */
/* the neighbouring news: two cards with a small whole picture; under the main picture one under another, under the
   text of a news item without a picture side by side */
.rt-news-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 40px 0 0; }
.rt-news-nav--side { grid-template-columns: minmax(0, 1fr); margin: 0; }
.rt-news-nav__item {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px 16px 10px 10px;
  color: var(--rt-ink); text-decoration: none; background: var(--rt-soft); border: 1px solid var(--rt-line); border-radius: 14px;
}
.rt-news-nav__item:hover { border-color: #c9d6e8; background: #fff; }
.rt-news-nav__thumb { position: relative; display: flex; align-items: center; justify-content: center; width: 96px; height: 72px; overflow: hidden; border-radius: 10px; background: var(--rt-blue-50); }
.rt-page .rt-news-nav__thumb img { position: relative; display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; }
.rt-page .rt-news-nav__thumb img.rt-news-nav__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; filter: blur(10px); transform: scale(1.2); }
.rt-page .rt-news-nav__thumb--logo img { width: 78px; }
.rt-news-nav__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rt-news-nav__dir { display: inline-flex; align-items: center; gap: 4px; color: var(--rt-muted); font-size: 13px; }
.rt-news-nav__item--prev .rt-news-nav__dir svg { transform: rotate(90deg); }
.rt-news-nav__item--next .rt-news-nav__dir svg { transform: rotate(-90deg); }
.rt-news-nav__title { font-size: 15px; font-weight: 600; line-height: 1.35; }
.rt-news-nav__item:hover .rt-news-nav__title { color: var(--rt-blue); }
@media (max-width: 699px) { .rt-news-nav { grid-template-columns: minmax(0, 1fr); } }
/* pictures in the text open the photo view (components/Gallery.tsx) */
.rt-page .rt-article img.rt-zoomable, .rt-page .rt-news-cover img.rt-zoomable { cursor: zoom-in; }
@media (min-width: 700px) and (max-width: 1023px) {
  .rt-news-layout { gap: 24px 28px; }
}
@media (max-width: 699px) {
  .rt-news-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "cover" "body" "nav"; gap: 24px; }
  .rt-news-layout--text { grid-template-areas: "body"; }
}

/* the photo section (components/gallery): album cards, then the photos in rows of one height — whole, no cropping */
.rt-albums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 0 40px; padding: 0; list-style: none; }
.rt-albums:last-child { margin-bottom: 0; }
/* three in a row like the news and the catalogue; two, then one, on narrower screens */
@media (max-width: 1023px) { .rt-albums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) { .rt-albums { grid-template-columns: minmax(0, 1fr); } }
.rt-album { display: flex; flex-direction: column; height: 100%; overflow: hidden; color: var(--rt-ink); text-decoration: none; background: #fff; border: 1px solid var(--rt-line); border-radius: 14px; }
.rt-album:hover { box-shadow: 0 12px 28px -16px rgba(10, 38, 71, .35); }
/* 4:3 like most of the photos: a 4:3 cover photo fills it exactly (the few a little wider or narrower lose a thin edge) */
.rt-album__cover { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; background: var(--rt-blue-50); }
.rt-page .rt-album__cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--rt-cover-pos, 50% 50%); }
.rt-page .rt-album__cover--logo img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.rt-album__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px 18px; }
.rt-album__title { font-size: 17px; font-weight: 600; line-height: 1.35; }
.rt-album:hover .rt-album__title { color: var(--rt-blue); }
.rt-album__count { color: var(--rt-muted); font-size: 14px; }
.rt-photos { --rt-row: 220px; display: flex; flex-wrap: wrap; gap: 8px; }
.rt-photos::after { content: ""; flex-grow: 1000000; }  /* the last row keeps its height instead of stretching */
.rt-photo { margin: 0; overflow: hidden; border-radius: 8px; background: var(--rt-blue-50); }
.rt-page .rt-photo img { display: block; width: 100%; height: auto; cursor: zoom-in; }
@media (max-width: 699px) { .rt-photos { --rt-row: 130px; gap: 6px; } .rt-albums { gap: 14px; } }

/* ── Отзывы: the letters of thanks, whole pages side by side, the company under each; a click opens the letter ── */
.rt-letters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin: 0; }
.rt-letter { display: flex; flex-direction: column; margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--rt-line); border-radius: 14px; }
.rt-page .rt-article .rt-letter img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1.414; object-fit: cover; margin: 0; border-bottom: 1px solid var(--rt-line); border-radius: 0; }
.rt-page .rt-letter figcaption { padding: 12px 14px 14px; color: var(--rt-ink); font-size: 14px !important; font-weight: 600; line-height: 1.35 !important; }  /* the theme enlarges figcaption on phones */
@media (max-width: 1023px) { .rt-letters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 699px) { .rt-letters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* ── Контакты: the company card beside the map; the people four in a row (two even rows); the partner ── */
.rt-contacts { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: stretch; margin: 0 0 56px; }
.rt-contacts__card { padding: 28px 28px 24px; background: var(--rt-soft); border: 1px solid var(--rt-line); border-radius: 16px; }
.rt-page .rt-contacts__name { margin: 0 0 6px; font-size: 24px !important; line-height: 1.25 !important; }
.rt-contacts__req { margin: 0 0 22px; color: var(--rt-muted); font-size: 14px; line-height: 1.5; }
.rt-page .rt-contacts__list { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }
.rt-page .rt-contacts__row { display: flex; align-items: flex-start; gap: 14px; margin: 0; }
.rt-contacts__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 40px; height: 40px; color: var(--rt-blue); background: var(--rt-blue-50); border: 1.5px solid var(--rt-blue); border-radius: 50%; }
.rt-contacts__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 1px; color: var(--rt-ink); font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.rt-contacts__label { color: var(--rt-muted); font-size: 14px; }
.rt-page .rt-contacts__phone { color: var(--rt-blue); font-size: 18px; font-weight: 700; text-decoration: none; }
.rt-page .rt-contacts__email { color: var(--rt-blue); text-decoration: none; }
.rt-page .rt-contacts__phone:hover, .rt-page .rt-contacts__email:hover { color: var(--rt-blue-700); text-decoration: underline; }
.rt-contacts__map { position: relative; min-height: 460px; overflow: hidden; background: var(--rt-blue-50); border: 1px solid var(--rt-line); border-radius: 16px; }
.rt-contacts__map > a:first-child { position: absolute; inset: 0; display: block; }
/* the map picture at its own size (its labels stay readable), cut to the frame around the pin in its centre */
.rt-page .rt-contacts__mapimg { display: block; width: 100%; height: 100%; max-width: none; object-fit: none; object-position: 50% 50%; }
.rt-contacts__route { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.rt-page .rt-contacts__routebtn {
  pointer-events: auto; display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px;
  color: var(--rt-blue); background: #fff; font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none;
  box-shadow: 0 2px 10px rgba(10, 38, 71, .18);
}
.rt-page .rt-contacts__routebtn:hover { color: var(--rt-blue-700); background: var(--rt-blue-50); }
.rt-contacts__osm { position: absolute; top: 0; right: 0; padding: 2px 8px; color: #333; background: rgba(255, 255, 255, .8); border-bottom-left-radius: 8px; font-size: 11px; line-height: 1.5; }
.rt-page .rt-contacts__osm a { color: inherit; }
.rt-page .rt-contacts__title { margin: 0 0 24px; }
.rt-page .rt-team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0 0 56px; padding: 0; list-style: none; }
.rt-page .rt-person { display: flex; flex-direction: column; margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--rt-line); border-radius: 14px; }
.rt-person__photo { display: block; aspect-ratio: 5 / 6; background: var(--rt-blue-50); }
.rt-page .rt-person__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rt-person__name { padding: 14px 18px 0; color: var(--rt-ink); font-size: 17px; font-weight: 600; line-height: 1.35; }
.rt-person__role { padding: 4px 18px 0; color: var(--rt-muted); font-size: 14px; line-height: 1.4; }
.rt-person::after { content: ""; padding-bottom: 18px; }
.rt-partner { display: inline-flex; padding: 20px 28px; background: #fff; border: 1px solid var(--rt-line); border-radius: 14px; }
.rt-page .rt-partner img { display: block; width: 360px; max-width: 100%; height: auto; }
@media (max-width: 1023px) {
  .rt-page .rt-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* a tablet held upright: the details and the map in two equal columns */
@media (min-width: 700px) and (max-width: 1023px) {
  .rt-contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  .rt-contacts { grid-template-columns: minmax(0, 1fr); }
  .rt-contacts__map { min-height: 380px; }
  .rt-contacts__card { padding: 20px 18px; }
  .rt-page .rt-team { gap: 12px; }
  .rt-person__name { padding: 12px 12px 0; font-size: 15px; }
  .rt-person__role { padding: 4px 12px 0; font-size: 13px; }
  .rt-person::after { padding-bottom: 12px; }
}

/* ── Наши заказчики: logos whole on white tiles, the name under each; six in a row, the last row centred ── */
.rt-page .rt-clients { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin: 0; padding: 0; list-style: none; }
.rt-page .rt-client { display: flex; flex-direction: column; width: calc((100% - 5 * 20px) / 6); margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--rt-line); border-radius: 14px; }
.rt-client__logo { display: flex; align-items: center; justify-content: center; box-sizing: border-box; height: 120px; padding: 14px; border-bottom: 1px solid var(--rt-line); }  /* one height: tall logos do not stretch their row */
.rt-page .rt-client__logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.rt-client__name { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 52px; padding: 8px 10px; color: var(--rt-ink); font-size: 14px; font-weight: 600; line-height: 1.3; text-align: center; }
@media (max-width: 1023px) { .rt-page .rt-client { width: calc((100% - 3 * 16px) / 4); } .rt-page .rt-clients { gap: 16px; } }
@media (max-width: 699px) { .rt-page .rt-client { width: calc((100% - 12px) / 2); } .rt-page .rt-clients { gap: 12px; } .rt-client__logo { height: 100px; padding: 12px; } .rt-client__name { font-size: 13px; } }

/* ── Партнеры: a card per partner — the logo whole, what it supplies under it ── */
.rt-partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rt-partner-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--rt-line); border-radius: 14px; }
.rt-partner-card__logo { display: flex; align-items: center; justify-content: center; box-sizing: border-box; height: 180px; padding: 20px; border-bottom: 1px solid var(--rt-line); }
.rt-page .rt-article .rt-partner-card__logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; margin: 0; border-radius: 0; }
.rt-page .rt-article .rt-partner-card p { margin: 0; padding: 16px 20px 18px; font-size: 16px; line-height: 1.45; }
@media (max-width: 1023px) { .rt-partners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) { .rt-partners { grid-template-columns: minmax(0, 1fr); } .rt-partner-card__logo { height: 150px; } }

/* ── 404: the code large, the words of the old page, a pill to the home page ── */
.rt-notfound { padding: 88px 0 104px; text-align: center; }
.rt-page .rt-notfound__title { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 30px !important; line-height: 1.2 !important; }
.rt-notfound__code { color: var(--rt-blue); font-size: 120px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.rt-page .rt-notfound__text { margin: 0 0 32px; color: var(--rt-muted); font-size: 18px !important; font-weight: 400; line-height: 1.4 !important; }
@media (max-width: 699px) { .rt-notfound { padding: 56px 0 72px; } .rt-notfound__code { font-size: 88px; } .rt-page .rt-notfound__title { font-size: 24px !important; } }

/* ── Documents (the privacy policy): one readable column ── */
.rt-doc { max-width: 820px; }
.rt-page .rt-article.rt-doc h2 { margin: 32px 0 12px; font-size: 22px !important; }
.rt-page .rt-article.rt-doc ul { margin: 0 0 14px; padding-left: 22px; }
.rt-page .rt-article.rt-doc li { margin-bottom: 6px; font-size: 17px !important; line-height: 1.6 !important; }
.rt-doc code { padding: 1px 6px; font-size: 14px; background: var(--rt-blue-50); border-radius: 6px; }
.rt-page .rt-doc__edition { color: var(--rt-muted); font-size: 15px !important; }
.rt-doc a { color: var(--rt-blue); text-decoration: underline; text-underline-offset: 3px; }
.rt-doc__linkbtn { padding: 0; border: 0; background: none; color: var(--rt-blue); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 699px) { .rt-page .rt-article.rt-doc h2 { font-size: 20px !important; } .rt-page .rt-article.rt-doc li { font-size: 16px !important; } }

/* ── Cookie banner (ADR Р12): a small dark card in the bottom left corner, two pills; full width on phones ── */
.rt-consent { position: fixed; left: 20px; bottom: 20px; z-index: 950; display: flex; flex-direction: column; gap: 12px; width: 400px; max-width: calc(100vw - 40px); padding: 16px 18px; color: rgba(255, 255, 255, .85); background: var(--rt-navy); border-radius: 16px; box-shadow: 0 16px 40px -12px rgba(10, 38, 71, .55); }
/* stronger than the site's text size for paragraphs (html body p … !important) */
html body .rt-consent .rt-consent__text { margin: 0; font-size: 13px !important; line-height: 1.45 !important; }
.rt-consent__text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .45); }
.rt-consent__text a:hover { text-decoration-color: #fff; }
.rt-consent__actions { display: flex; gap: 8px; }
.rt-consent__btn { flex: 1; height: 36px; padding: 0 16px; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; font-weight: 600; white-space: nowrap; cursor: pointer; }
html body .rt-consent .rt-consent__btn { font-size: 13px !important; }
.rt-consent__btn:hover { border-color: #fff; }
.rt-consent__btn--primary { color: var(--rt-navy); background: #fff; border-color: #fff; }
.rt-consent__btn--primary:hover { background: var(--rt-blue-50); }
@media (max-width: 699px) {
  .rt-consent { left: 8px; right: 8px; bottom: 8px; width: auto; max-width: none; padding: 14px 16px; }
}

/* ── Видео: the parts as cards with 16:9 covers; videos as cards with Rutube's still, played in the card ── */
.rt-albums--wide .rt-album__cover { aspect-ratio: 16 / 9; }
.rt-vcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin: 0; padding: 0; list-style: none; }
.rt-vcards--one { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin: 0 auto; }
.rt-vcard { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--rt-line); border-radius: 14px; }
.rt-vcard__media { position: relative; aspect-ratio: 16 / 9; background: #0b1220; }
.rt-vcard__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rt-vcard__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.rt-page .rt-vcard__play img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
/* a vertical video's still: whole, in the middle, its blurred copy fills the sides (VideoCards.tsx) */
.rt-page .rt-vcard__play img.rt-vcard__still--tall { object-fit: contain; }
.rt-page .rt-vcard__play img.rt-vcard__backdrop { object-fit: cover; filter: blur(18px); transform: scale(1.2); }
.rt-vcard__media { overflow: hidden; }
.rt-vcard__icon { position: relative; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; padding-left: 4px; color: var(--rt-blue); background: #fff; border-radius: 50%; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .5); }
.rt-vcard__play:hover .rt-vcard__icon, .rt-vcard__play:focus-visible .rt-vcard__icon { color: #fff; background: var(--rt-blue); }
.rt-page .rt-vcard__title { margin: 0; padding: 14px 18px 18px; color: var(--rt-ink); font-size: 17px !important; font-weight: 600; line-height: 1.35 !important; }  /* !important: the theme sets every h2 with it */
.rt-page .rt-vcard__title a { color: inherit; }
.rt-page .rt-vcard__title a:hover { color: var(--rt-blue); }
/* a video's own page: the player (16:9, like the cards), the text under it */
.rt-videoitem { display: flex; flex-direction: column; gap: 28px; max-width: 960px; }
.rt-videoitem > .rt-vcard__media { overflow: hidden; border-radius: 14px; }
.rt-page .rt-videoitem__facts { margin: 0 0 14px; color: var(--rt-muted); font-size: 15px !important; line-height: 1.5 !important; }
.rt-videoitem__text > :first-child { margin-top: 0; }
.rt-videoitem__links { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.rt-page .rt-btn--light { background: var(--rt-blue-50); color: var(--rt-blue); }
.rt-page .rt-btn--light:hover { background: #dde7f5; color: var(--rt-blue-700); }

@media (max-width: 699px) { .rt-vcards { grid-template-columns: minmax(0, 1fr); gap: 14px; } .rt-vcard__icon { width: 60px; height: 60px; } }

/* Machine pages: blocks of specifications as cards, the options part as a section of its own */
.rt-page .rt-article .rt-caps { font-size: 15px !important; line-height: 1.4 !important; letter-spacing: 0.06em; color: var(--rt-blue); }
/* two columns filled top to bottom: the cards keep their order and stack without gaps */
.rt-groups { column-count: 2; column-gap: 20px; margin: 28px 0 20px; }
.rt-group { display: flow-root; break-inside: avoid; margin: 0 0 20px; padding: 22px 24px 8px; background: var(--rt-soft); border: 1px solid var(--rt-line); border-radius: 16px; }
.rt-group::after { content: ""; display: block; clear: both; }
.rt-page .rt-article .rt-group h3 { margin: 0 0 12px; font-size: 18px !important; line-height: 1.35 !important; }
.rt-page .rt-article .rt-group :is(p, li) { font-size: 16px !important; line-height: 1.55 !important; }
.rt-page .rt-article .rt-group :is(ul, ol) { margin-bottom: 14px; }
.rt-page .rt-article .rt-group img.rt-float-right { max-width: 45% !important; margin-left: 16px; }

.rt-options { margin: 48px 0 8px; padding: 32px; background: var(--rt-blue-50); border-radius: 22px; }
.rt-page .rt-article .rt-options__title { margin: 0 0 22px; font-size: 22px !important; line-height: 1.3 !important; letter-spacing: 0.05em; color: var(--rt-blue-700); }
.rt-options__grid { column-count: 2; column-gap: 16px; }
/* two cards only: one under the other, full width; a long list inside goes in two columns */
.rt-groups--wide { column-count: 1; }
.rt-groups--wide :is(ul, ol):has(> li:nth-child(5)) { column-count: 2; column-gap: 40px; }
.rt-groups--wide li { break-inside: avoid; }
/* with the script (components/CardColumns.tsx): each card goes to the column that ends higher */
.rt-groups.is-packed, .rt-options__grid.is-packed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1px; column-count: auto; align-items: start; }
.rt-groups.is-packed { column-gap: 20px; }
.rt-options__grid.is-packed { column-gap: 16px; margin-bottom: -16px; }  /* the last card's own margin: the bottom padding equals the side ones */
.rt-option { display: flow-root; break-inside: avoid; margin: 0 0 16px; padding: 20px 22px 6px; background: #fff; border: 1px solid #d9e3f1; border-radius: 14px; }
.rt-option--name { padding-bottom: 20px; }
.rt-option::after { content: ""; display: block; clear: both; }
.rt-page .rt-article .rt-option h3 { margin: 0 0 10px; font-size: 17px !important; line-height: 1.35 !important; }
.rt-page .rt-article .rt-option--name h3 { margin: 0; }
/* A heading moved up one level so that no level is skipped (lib/headings.ts) keeps the look of its old level, H3 */
.rt-page .rt-article h2.rt-h3 { font-size: 21px !important; line-height: 1.3 !important; }
.rt-page .rt-article .rt-hero__info h2.rt-h3 { margin: 36px 0 14px; font-size: 21px !important; line-height: 1.3 !important; }
.rt-page .rt-article .rt-group h2.rt-h3 { margin: 0 0 12px; font-size: 18px !important; line-height: 1.35 !important; }
.rt-page .rt-article .rt-note h2.rt-h3 { margin: 0 0 14px; font-size: 22px !important; line-height: 1.3 !important; color: var(--rt-blue-700); }
.rt-page .rt-article .rt-option :is(p, li) { font-size: 15px !important; line-height: 1.55 !important; color: var(--rt-ink); }
.rt-page .rt-article .rt-option :is(ul, ol) { margin-bottom: 14px; }
.rt-option .rt-video, .rt-option .rt-figure { margin-bottom: 14px; }

@media (max-width: 699px) {
  .rt-groups, .rt-options__grid { column-count: 1; }
  .rt-groups--wide :is(ul, ol):has(> li:nth-child(5)) { column-count: 1; }
  .rt-groups.is-packed, .rt-options__grid.is-packed { grid-template-columns: minmax(0, 1fr); }
  .rt-group, .rt-option { margin-bottom: 14px; }
  .rt-options { margin-left: -15px; margin-right: -15px; padding: 24px 15px 15px; border-radius: 0; }
  .rt-options__grid.is-packed { margin-bottom: -14px; }
  .rt-group { padding: 18px 18px 4px; }
}

/* ======================================================================
   Search over the site (/search/, components/search)
   ====================================================================== */
.rt-search__box { max-width: 760px; }
.rt-search__form { display: flex; gap: 10px; align-items: center; }
html body .rt-search__input {
  flex: 1; min-width: 0; height: 52px; margin: 0; padding: 0 24px;
  border: 1px solid #c9d6e8; border-radius: 26px; background: #fff; box-shadow: none;
  color: var(--rt-ink); font: inherit; font-size: 17px !important; line-height: 1.2 !important;
}
html body .rt-search__input:focus { border-color: var(--rt-blue); outline: none; box-shadow: 0 0 0 3px rgba(15, 77, 154, .15); }
.rt-search__input::-webkit-search-cancel-button { cursor: pointer; }
html body button.rt-search__submit {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin: 0; padding: 0;
  border: 0; border-radius: 50%; background: var(--rt-blue); color: #fff; cursor: pointer; box-shadow: none;
}
html body button.rt-search__submit:hover { background: var(--rt-blue-700); }
.rt-page .rt-search__status { margin: 20px 0 0; color: var(--c-muted); font-size: 15px !important; }
.rt-search__results { margin: 8px 0 0 !important; padding: 0 !important; list-style: none !important; }
html body .rt-search__hit { margin: 0; padding: 20px 0; border-bottom: 1px solid #e3e9f2; list-style: none !important; }
.rt-page .rt-search__title { display: block; color: var(--rt-blue); font-size: 19px; font-weight: 600; line-height: 1.35; }
.rt-page .rt-search__title:hover { color: var(--rt-blue-700); }
.rt-page .rt-search__excerpt { margin: 6px 0 0; color: var(--c-text); font-size: 15px !important; line-height: 1.55 !important; }
.rt-search__excerpt mark { padding: 0 2px; border-radius: 3px; background: #fff1b8; color: inherit; }
.rt-search__more { margin-top: 24px; }
@media (max-width: 699px) {
  html body .rt-search__input { height: 48px; padding: 0 18px; font-size: 16px !important; }
  html body button.rt-search__submit { width: 48px; height: 48px; }
  .rt-page .rt-search__title { font-size: 17px; }
}
