@charset "UTF-8";
/*
 * main.css — стили сайта rusconveyor.ru (русло rc-eleventy).
 *
 * Исторически — копия style.css темы WordPress. 23.09.2026 из неё сняты
 * правила, чьи селекторы не совпадают ни с одним элементом ни на одной из
 * 156 собранных страниц (1 730 из 2 289; состояния :hover/:focus и классы,
 * которые навешивает assets/js, сохранены). Скриншоты всех страниц на 1440
 * и 390 до и после совпали попиксельно. Новые стили — только по design.md.
 */
/*------------------------------------*
	$MAIN
*------------------------------------*/
html,
body,
div,
span,
iframe,
h1,
h2,
h3,
h4,
h5,
p,
a,
em,
img,
strong,
sub,
ol,
ul,
li,
form,
label,
table,
tbody,
thead,
tr,
th,
td,
article,
aside,
details,
figure,
footer,
header,
nav,
section,
summary {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  font-family: inherit;
  font-size: 100%;
  font-style: inherit;
  font-weight: inherit;
}

article,
aside,
details,
figure,
footer,
header,
nav,
section {
  display: block;
}

html {
  font-size: 62.5%;
  overflow-y: scroll;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--sz-header-h) + var(--s-5));
}

@media (max-width: 959px) {
  html {
    scroll-padding-top: calc(var(--sz-header-h-mobile) + var(--s-5));
  }
}

:target,
.rc-anchor-target,
.sec[id],
[data-sec][id],
h1[id], h2[id], h3[id], h4[id] {
  scroll-margin-top: calc(var(--sz-header-h) + var(--s-5));
}

@media (max-width: 959px) {
  :target,
  .rc-anchor-target,
  .sec[id],
  [data-sec][id],
  h1[id], h2[id], h3[id], h4[id] {
    scroll-margin-top: calc(var(--sz-header-h-mobile) + var(--s-5));
  }
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

article,
aside,
details,
figure,
footer,
header,
main,
nav,
section {
  display: block;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

th,
td {
  font-weight: normal;
  text-align: left;
}

a:focus {
  outline: solid var(--bw-thin) !important;
}

a:active {
  outline: 0;
}
@media (hover: hover) and (pointer: fine) {
  a:hover {
    outline: 0;
  }
}

a img {
  border: 0;
}

img {
  max-width: 100%;
  height: auto;
}

select {
  max-width: 100%;
}

em {
  font-style: italic;
}

html {
  -ms-overflow-x: hidden;
  overflow-x: hidden;
}

body {
  font-family: "Open Sans", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--ink-2);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

body {
  background-color: var(--surface);
}

em {
  font-style: italic;
}

/**
 * Grid > Main Classes.
 */
body .oceanwp-row {
  margin: 0 -0.625rem;
}

/**
 * Selection Color.
 */
::selection {
  color: var(--surface);
  background: var(--ink-2);
  text-shadow: none;
}

::-moz-selection {
  color: var(--surface);
  background: var(--ink-2);
  text-shadow: none;
}

/**
 * 1. Set default font family to sans-serif.
 * 2. Prevent iOS and IE text size adjust after device orientation change,
 *    without disabling user zoom.
 */
html {
  font-family: sans-serif; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%;
}

/**
 * Remove default margin.
 */
body {
  margin: 0;
}
/**
 * Correct `block` display not defined for any HTML5 element in IE 8/9.
 * Correct `block` display not defined for `details` or `summary` in IE 10/11
 * and Firefox.
 * Correct `block` display not defined for `main` in IE 11.
 */
article,
aside,
details,
figure,
footer,
header,
main,
nav,
section,
summary {
  display: block;
}

/**
 * Address `[hidden]` styling not present in IE 8/9/10.
 * Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
 */
[hidden] {
  display: none;
}
/**
 * Remove the gray background color from active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * Improve readability of focused elements when they are also in an
 * active/hover state.
 */
a:active {
  outline: 0;
}
@media (hover: hover) and (pointer: fine) {
  a:hover {
    outline: 0;
  }
}

/**
 * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
 */
strong {
  font-weight: 600;
}

/**
 * Prevent `sub` and `sup` affecting `line-height` in all browsers.
 */
sub {
  font-size: var(--fs-micro); /* R87: 75% от 14px = 10.5px вне шкалы */
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}
/**
 * Remove border when inside `a` element in IE 8/9/10.
 */
img {
  border: 0;
}

/**
 * Correct overflow not hidden in IE 9/10/11.
 */
svg:not(:root) {
  overflow: hidden;
}
/**
 * Address differences between Firefox and other browsers.
 */
hr {
  box-sizing: content-box;
  height: 0;
}
/**
 * 1. Correct color not being inherited.
 *    Known issue: affects color of disabled elements.
 * 2. Correct font properties not being inherited.
 * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
 */
button,
input,
select,
textarea {
  color: inherit; /* 1 */
  font: inherit; /* 2 */
  margin: 0;
}

/**
 * Address `overflow` set to `hidden` in IE 8/9/10/11.
 */
button {
  overflow: visible;
}

/**
 * Address inconsistent `text-transform` inheritance for `button` and `select`.
 * All other form control elements do not inherit `text-transform` values.
 * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
 * Correct `select` style inheritance in Firefox.
 */
button,
select {
  text-transform: none;
}

/**
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 2. Correct inability to style clickable `input` types in iOS.
 * 3. Improve usability and consistency of cursor style between image-type
 *    `input` and others.
 */
button {
  -webkit-appearance: button; /* 2 */
  cursor: pointer;
}

/**
 * Remove inner padding and border in Firefox 4+.
 */
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/**
 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 */
input {
  line-height: normal;
}

/**
 * It's recommended that you don't attempt to style these elements.
 * Firefox's implementation doesn't respect box-sizing, padding, or width.
 *
 * 1. Address box sizing set to `content-box` in IE 8/9/10.
 * 2. Remove excess padding in IE 8/9/10.
 */
input[type=checkbox] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
}

/**
 * Fix the cursor style for Chrome's increment/decrement buttons. For certain
 * `font-size` values of the `input`, it causes the cursor style of the
 * decrement button to change from `default` to `text`.
 */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * Remove default vertical scrollbar in IE 8/9/10/11.
 */
textarea {
  overflow: auto;
}
/**
 * Remove most spacing between table cells.
 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

/*------------------------------------*
	$LAYOUTS
*------------------------------------*/
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  box-sizing: border-box;
}

#main {
  position: relative;
}

/*------------------------------------*
	All Devices under 960px
*------------------------------------*/
@media (max-width: 959px) {
  /* container */
  .container {
    max-width: 90%;
  }
}

/*------------------------------------*
	$COMPONENTS
*------------------------------------*/
figure > img {
  display: block;
  margin: 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

iframe {
  width: 100%;
  max-width: 100%;
}

table {
  width: 100%;
  /* После таблицы — s8 (design.md, «Границы и отступы между блоками»). */
  margin-bottom: var(--s-8);
}

table th,
table td {
  /* design.md, контракт td: padding s4 s6. */
  padding: var(--s-4) var(--s-6);
  text-align: left;
  vertical-align: top;
  border-bottom: var(--bw-thin) solid var(--line);
}

table th {
  text-transform: uppercase;
}

.clr:after {
  content: "";
  display: block;
  visibility: hidden;
  clear: both;
  zoom: 1;
  height: 0;
}
/**
 * Set link colors.
 */
a {
  color: var(--ink-2);
}
@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: var(--primary);
  }
}

a,
a:focus {
  text-decoration: none;
  transition: all 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  a:hover {
    text-decoration: none;
    transition: all 0.3s ease;
  }
}

/**
 * Headings.
 */
h1,
h2,
h3,
h4,
h5 {
  font-weight: 600;
  margin: 0 0 var(--s-5);
  color: var(--ink-2);
  line-height: 1.4;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-lede);
}

h4 {
  font-size: var(--fs-h4);
}

h5 {
  font-size: var(--fs-h4);
}

/**
 * Text elements.
 */
p {
  margin: 0 0 var(--s-5);
}

ul,
ol {
  margin: var(--s-4) 0 var(--s-4) var(--s-5);
}

ol {
  list-style-type: decimal;
}

li ul {
  margin: 0 0 0 var(--s-6);
}

hr {
  clear: both;
  height: var(--bw-thin);
  min-height: 0;
  margin: var(--s-5) 0;
  border-top: var(--bw-thin) solid var(--line);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
}

/**
 * Print styles.
 */
@media print {
  * {
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a,
a:visited {
    text-decoration: underline;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
  a[href^="#"]:after {
    content: "";
  }
  thead {
    display: table-header-group;
  }
  tr,
img {
    page-break-inside: avoid;
  }
  img {
    max-width: 100% !important;
  }
  @page {
    margin: 0.5cm;
  }
  p,
h2,
h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
h3 {
    page-break-after: avoid;
  }
}
/*------------------------------------*
	$FORMS
*------------------------------------*/
form input[type=text],
form input[type=email],
form input[type=number],
form input[type=tel],
form select,
form textarea {
  /* Вид поля — только из канона (`input, textarea, select` ниже, токен
     components.input): прежние 14px, #ddd, radius 3px и padding 6px 12px
     перебивали его специфичностью на форме заявки всех страниц. */
  display: inline-block;
  width: 100%;
  vertical-align: middle;
}

form select {
  padding-top: 0;
  padding-bottom: 0;
}

form input[type=number] {
  max-width: var(--sz-num-field);
  padding: 0 0 0 var(--s-2);
}

input[type=text],
input[type=email],
textarea {
  -webkit-appearance: none;
}

form textarea {
  min-height: var(--sz-textarea-min);
  line-height: 1.5;
  resize: vertical;
  /* R66: поле растёт по тексту — в покое прежние 150px, дальше до 12 строк,
     потом прокрутка. Браузер без field-sizing оставляет высоту по rows. */
  field-sizing: content;
  height: auto;
  max-height: calc(12lh + 2 * var(--s-4) + 2 * var(--bw-thin));
}

input[type=checkbox] {
  display: inline-block;
  width: var(--sz-checkbox-sm);
  height: var(--sz-checkbox-sm);
  margin: 0;
  vertical-align: middle;
  cursor: pointer;
  accent-color: var(--primary);
  flex-shrink: 0;
}
/* May be able to remove this tweak as color inputs become more standardized across browsers. */

form input[type=text]:focus,
form input[type=email]:focus,
form input[type=number]:focus,
form input[type=tel]:focus,
form select:focus,
form textarea:focus {
  border-color: var(--line-2);
  outline: 0;
}

/*
Need to separate out the :not() selector from the rest of the CSS 2.1 selectors
since IE8 won't execute CSS that contains a CSS3 selector.
*/

form input[type=checkbox]:focus {
  outline: 0;
}

form input[type=checkbox] {
  display: inline-block;
}

/*
Need to separate out the :not() selector from the rest of the CSS 2.1 selectors
since IE8 won't execute CSS that contains a CSS3 selector.
*/

/* Ошибка — после того как человек ввёл значение или попытался отправить
   форму, а не сразу при фокусе на пустом обязательном поле. */
form input:user-invalid,
form textarea:user-invalid,
form select:user-invalid {
  color: var(--err);
  border-color: var(--err);
}

form input[type=checkbox]:user-invalid:focus-visible {
  outline-color: var(--err);
}

select {
  width: 100%;
  /* Normalizes the height; padding is not sufficient. */
  height: 2.25em;
  min-height: auto;
  border: var(--bw-thin) solid var(--line-2);
  background-color: var(--surface);
  cursor: pointer;
  padding: 0 var(--s-4);
  margin: 0;
}

form label {
  margin-bottom: var(--s-1);
}

/*csslint outline-none:false*/
button[type=submit] {
  display: inline-block;
  font-family: inherit;
  background-color: var(--primary);
  color: var(--surface);
  font-size: var(--fs-caption);
  font-weight: 600;
  text-transform: uppercase;
  margin: 0;
  padding: var(--s-4) var(--s-5);
  border: 0;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.1em;
  line-height: 1;
  transition: all 0.3s ease;
}

button[type=submit]:focus {
  background-color: var(--primary-hover);
  color: var(--surface);
}
@media (hover: hover) and (pointer: fine) {
  button[type=submit]:hover {
    background-color: var(--primary-hover);
    color: var(--surface);
  }
}

button[type=submit]:focus,
button:focus {
  outline: 0;
}

/* Firefox: Get rid of the inner focus border */
button::-moz-focus-inner {
  padding: 0;
  border: 0;
}
/*------------------------------------*
	$HEADER
*------------------------------------*/
#site-header {
  position: relative;
  width: 100%;
  background-color: var(--surface);
  border-bottom: var(--bw-thin) solid var(--line);
  z-index: 100;
}

#site-header-inner {
  position: relative;
  height: 100%;
}

#site-header.medium-header {
  background-color: transparent;
  text-align: center;
}
#site-header.medium-header #site-navigation-wrap {
  position: relative;
  background-color: var(--surface);
  float: none;
  position: relative;
  right: auto;
  left: auto;
  -ms-transform: none;
  transform: none;
  z-index: 9;
}
#site-header.medium-header #site-navigation-wrap #site-navigation {
  display: inline-block;
  position: relative;
}

#site-header.medium-header .oceanwp-mobile-menu-icon {
  float: none;
  background-color: var(--surface);
  right: auto;
  left: auto;
}

/*------------------------------------*
	$NAVIGATIONS
*------------------------------------*/
#site-navigation-wrap {
  float: right;
  position: relative;
  right: calc(-1 * var(--s-4));
}

/*------------------------------------*
	Mobile Menu
*------------------------------------*/
.oceanwp-mobile-menu-icon {
  display: none;
  position: relative;
}

/*------------------------------------*
	$DROP DOWN MOBILE
*------------------------------------*/

/**
 * Single Post
 */

.wp-block-image {
  margin-bottom: var(--s-5);
}

.wp-block-separator {
  margin: var(--s-7) auto;
}
/*------------------------------------*
	$FOOTER
*------------------------------------*/
.site-footer {
  position: relative;
}

/**
 * Footer widgets
 */
#footer-widgets {
  background-color: var(--ink-2);
  padding: var(--s-7) 0;
  margin: 0;
}

/*------------------------------------*
	$SIDR
*------------------------------------*/

/* Magnific Popup CSS */

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

/* The shadow behind the image */

/* ============================================================
   2. BASE RESET & FLAT FORMS
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important;
}

body {
  font-family: var(--ff-body);
  background: var(--surface);
  color: var(--ink-2);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: inherit;
  border-radius: 0;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Zero shadows invariant */
*, *::before, *::after {
  box-shadow: none;
  text-shadow: none;
}

/* ============================================================
   3. LAYOUT & CONTAINERS
   ============================================================ */

.wrap,
.sec > .wrap,
.rc-article > :not(.sec):not(.hero-sec):not(.wp-block-group.sec):not(.rc-anchor-target) {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  box-sizing: border-box;
  width: 100%;
}

.wrap-narrow {
  max-width: var(--max-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  box-sizing: border-box;
  width: 100%;
}

/* .sec padding/border — единственное объявление в каркасе дизайн-системы
   (секция «01 Layout»), строка ~2728. Здесь остаются только боковые отступы
   .wrap для mobile, чтобы не дублировать с каркасом. */

@media (max-width: 959px) {
  .wrap,
.sec > .wrap,
.wrap-narrow,
.rc-article > :not(.sec):not(.hero-sec):not(.wp-block-group.sec):not(.rc-anchor-target) {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
}

/* Отступ секции — s11 целиком; первый и последний потомки его не
   наращивают. Раньше обнулялся только последний, и `.mt-s4` у текста
   секции без заголовка давал 72 + 16 (замер 23.09.2026: 150 секций на
   131 странице). */
.sec > .wrap > *:first-child,
.sec > .wrap-narrow > *:first-child,
.tab-body > *:first-child {
  margin-top: 0 !important;
}

.sec > .wrap > *:last-child,
.sec > .wrap-narrow > *:last-child,
.tab-body > *:last-child {
  margin-bottom: 0;
}

.tab-body {
  padding: var(--s-4) 0 0 0;
}

/* ============================================================
   SPACING UTILITIES (design.md canon s1..s11)
   ============================================================ */
.mt-s2  { margin-top: var(--s-2); }
.mt-s3  { margin-top: var(--s-3); }
.mt-s4  { margin-top: var(--s-4); }
.mt-s6  { margin-top: var(--s-6) !important; }
.mt-s8  { margin-top: var(--s-8); }

/* ============================================================
   4. TYPOGRAPHY SCALE (5 steps: 28 · 22 · 16 · 14 · 12)
   ============================================================ */
h1 {
  font-family: var(--ff-body);
  font-size: var(--fs-h1);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: var(--s-4);
}

h2, .l2 {
  font-family: var(--ff-body);
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: var(--s-4);
}

h3 {
  font-family: var(--ff-body);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: var(--s-4);
}

h4, .l3 {
  font-family: var(--ff-body);
  font-size: var(--fs-lede);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: var(--s-2);
}

p {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: var(--s-4);
}

.sec-lede {
  font-family: var(--ff-body);
  font-size: var(--fs-lede);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: var(--s-8);
  width: 100%;
}

/* Отбивка контейнера (сетки/скроллера), если в секции нет лида:
   по канону design.md зазор между блоками с видимыми границами — s8 (40px) */
.sec > .wrap > h2.l2 + .cards,
.sec > .wrap > h2.l2 + .scroller-wrap,
.sec > .wrap > .l2 + .cards,
.sec > .wrap > .l2 + .scroller-wrap,
.logos-head + .scroller-wrap,
.logos-head + .logos-grid {
  margin-top: var(--s-8);
}

.caption {
  font-family: var(--ff-body);
  font-size: var(--fs-caption);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-3);
}

.micro {
  font-family: var(--ff-body);
  font-size: var(--fs-caption);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.t-ink3 {
  color: var(--ink-3);
}

/* Weight and semantic contracts */
strong {
  font-weight: 500;
  color: var(--ink);
}

/* R-026: Suppression of synthetic italic with substitution */
em {
  font-style: normal;
  font-weight: 500;
  color: var(--ink);
}

/* Text links in paragraphs */
p a:not(.btn):not(.btn-ghost):not(.btn-sm):not(.btn-header):not(.button):not(.elementor-button), .sec-lede a:not(.btn):not(.btn-ghost):not(.btn-sm):not(.btn-header):not(.button):not(.elementor-button) {
  color: var(--primary);
  border-bottom: var(--bw-thin) solid currentColor;
  text-decoration: none;
  transition: color var(--dur-med) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  p a:hover,
  .sec-lede a:hover {
    color: var(--primary-hover);
  }
}

/* ============================================================
   5. KEYBOARD ACCESSIBILITY & FOCUS
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: var(--bw-mark) solid var(--focus-ring) !important;
  outline-offset: var(--bw-mark) !important;
}

/* ============================================================
   6. BUTTONS & ACTIONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-6);
  background: var(--primary);
  color: var(--surface);
  border: 0;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-med) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background: var(--primary-hover);
    color: var(--surface);
  }
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-6);
  background: transparent;
  color: var(--ink-2);
  border: var(--bw-hair) solid var(--line-2);
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--dur-med) var(--ease), color var(--dur-med) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover {
    border-color: var(--ink);
    color: var(--ink);
  }
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-4);
  background: var(--primary);
  color: var(--surface);
  border: 0;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-med) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .btn-sm:hover {
    background: var(--primary-hover);
    color: var(--surface);
  }
}

.btn-upper {
  text-transform: uppercase;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  align-items: center;
}

@media (max-width: 959px) {
  .action-row {
    flex-direction: column;
    gap: var(--s-3);
    width: 100%;
  }
  .action-row .btn,
  .action-row .btn-ghost {
    width: 100%;
  }
}

/* ============================================================
   7. EYEBROW, TAGS & TECH-NOTE
   ============================================================ */
.eyebrow {
  font-family: var(--ff-body);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-4);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.eyebrow::before {
  content: '';
  display: block;
  width: var(--sz-rule-eyebrow);
  height: var(--bw-thin);
  background: var(--primary);
  flex-shrink: 0;
}

.tag {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-hover);
  background: var(--accent-soft);
  padding: var(--s-1) var(--s-2);
  margin: 0 var(--s-1) var(--s-2) 0;
}

.tech-note {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  padding: var(--s-7) 0;
  margin-top: var(--s-8);
  border-top: var(--bw-hair) solid var(--line-2);
  border-bottom: var(--bw-hair) solid var(--line-2);
  background: var(--surface);
}
.tech-note::before {
  content: "";
  width: var(--sz-marker);
  height: var(--sz-marker);
  background: var(--primary);
  margin-top: var(--s-2);
  flex-shrink: 0;
}

@media (max-width: 959px) {
  .tech-note {
    padding: var(--s-6) 0;
  }
}

/* ============================================================
   8. CARDS & CARDS GRID
   ============================================================ */
.card {
  background: var(--surface);
  border: var(--bw-hair) solid var(--line-2);
  padding: var(--s-6);
  transition: border-color var(--dur-med) var(--ease), background var(--dur-med) var(--ease);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  width: 100%;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    border-color: var(--ink-4);
    background: var(--accent-soft);
  }
}

.card__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: var(--s-4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Ролик при наведении (_lib/hover-video.js): лежит поверх картинки в той же
   рамке, проявляется прозрачностью — design.md разрешает переход только по
   color и opacity. На сенсорных экранах и при «уменьшить движение» скрипт его
   не включает, а стиль прячет. */
[data-hover-video] {
  position: relative;
}
.hover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease);
}
.is-playing > .hover-video,
.is-playing > a > .hover-video {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hover-video {
    display: none;
  }
}

.card .tag {
  margin-bottom: var(--s-4);
}
.card .l3 {
  margin-bottom: var(--s-3);
}
.card .l3:has(+ .type-spec) {
  margin-bottom: var(--s-1);
}
.card > :last-child {
  margin-bottom: 0;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
}

@media (max-width: 959px) {
  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 959px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
}

.scroller-wrap {
  position: relative;
  width: 100%;
}
@media (min-width: 960px) {
  .scroller-wrap .slider-prev {
    left: calc(-1 * var(--s-6));
  }
  .scroller-wrap .slider-next {
    right: calc(-1 * var(--s-6));
  }
}

.scroller,
.scroller-row {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scroller::-webkit-scrollbar,
.scroller-row::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Карточки со скроллером (.cases-grid.scroller, .cards.scroller) */
.cases-grid.scroller {
  display: flex;
  grid-template-columns: none;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scroll-padding-inline: var(--s-7);
  gap: var(--s-6);
  margin: 0;
  padding: var(--s-1) 0 var(--s-2);
  border: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.cases-grid.scroller::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.cases-grid.scroller.is-dragging,
.cards.scroller.is-dragging,
.logos-grid.scroller-row.is-dragging {
  cursor: grabbing;
  user-select: none;
  scroll-snap-type: none !important;
}

.cases-grid.scroller > .card {
  flex: 0 0 calc((100% - var(--s-6) * 2) / 3);
  width: calc((100% - var(--s-6) * 2) / 3);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border: var(--bw-hair) solid var(--line-2);
  border-radius: 0;
  background: var(--surface);
}

@media (max-width: 959px) {
  .cases-grid.scroller > .card {
    flex: 0 0 calc((100% - var(--s-6)) / 2);
    width: calc((100% - var(--s-6)) / 2);
  }
}

@media (max-width: 959px) {
  .cases-grid.scroller {
    gap: var(--s-3);
    margin: 0;
    padding: 0 0 var(--s-1);
  }
  /* Аффорданс ленты — токен peek из design.md: следующая карточка выглядывает. */
  .cases-grid.scroller > .card {
    flex: 0 0 86%;
    width: 86%;
  }
}

/* Карточки-фичи со скроллером (.cards.scroller) */
.cards.scroller {
  display: flex;
  grid-template-columns: none !important;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scroll-padding-inline: var(--s-7);
  gap: var(--s-6);
  margin: 0;
  padding: var(--s-1) 0 var(--s-2);
  border: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.cards.scroller::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.cards.scroller > .card {
  flex: 0 0 calc((100% - var(--s-6) * 2) / 3);
  width: calc((100% - var(--s-6) * 2) / 3);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

@media (max-width: 959px) {
  .cards.scroller > .card {
    flex: 0 0 calc((100% - var(--s-6)) / 2);
    width: calc((100% - var(--s-6)) / 2);
  }
}

@media (max-width: 959px) {
  .cards.scroller {
    gap: var(--s-3);
    margin: 0;
    padding: 0 0 var(--s-1);
  }
  .cards.scroller > .card {
    flex: 0 0 86%;
    width: 86%;
  }
}

/* Точки навигации (scroller-dots) по design.md v3.34 (раздел Каркас 12 и sizes.marker: 6px) */
.scroller-dots {
  display: flex;
  width: 100% !important;
  max-width: 100%;
  justify-content: center;
  align-items: center;
  gap: var(--s-2);
  margin: var(--s-5) auto 0 !important;
  padding: 0;
  border: none !important;
}
.scroller-dots button.dot,
.scroller-dots .dot {
  display: inline-block;
  width: var(--sz-marker);
  height: var(--sz-marker);
  min-width: var(--sz-marker);
  min-height: var(--sz-marker);
  max-width: var(--sz-marker);
  max-height: var(--sz-marker);
  border-radius: 0;
  background: var(--line-2) !important;
  border: none;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition: background var(--dur-med) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .scroller-dots button.dot:hover,
  .scroller-dots .dot:hover {
    background: var(--ink-3) !important;
  }
}

/* Точка — кнопка, значит у неё обязано быть видимое кольцо фокуса (design.md,
   раздел «Фокус и семантика»). */
.scroller-dots button.dot:focus-visible {
  outline: var(--bw-mark) solid var(--focus-ring);
  outline-offset: var(--s-1);
}
.scroller-dots span.active,
.scroller-dots span[data-on="1"],
.scroller-dots button.dot.active,
.scroller-dots .dot.active {
  background: var(--primary) !important;
  width: var(--sz-marker) !important;
}

/* ============================================================
   9. HAIRLINE GRID (Facts & Specs)
   ============================================================ */

/* ============================================================
   10. HERO SECTION (v2)
   ============================================================ */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-9);
  align-items: stretch;
}

/* Блок метрик Hero в одну строку */

/* Карточка визуализации Hero */

@media (max-width: 959px) {
  .hero {
    grid-template-columns: 1fr;
    gap: var(--s-7);
  }
}

@media (max-width: 959px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-7);
  }

}

/* ============================================================
   11. DATA TABLES (.cmp)
   ============================================================ */
.cmp th.active {
  background: var(--primary);
  color: var(--surface);
}

/* ============================================================
   12. TABS (.ind-tabs & .ind-tabs-v2)
   ============================================================ */
.ind-tabs {
  display: grid;
  grid-template-columns: var(--sz-nav-col) 1fr;
  border: var(--bw-hair) solid var(--line);
  background: var(--surface);
  margin-top: var(--s-7);
  margin-bottom: var(--s-8);
}
.ind-list {
  display: flex;
  flex-direction: column;
  border-right: var(--bw-hair) solid var(--line);
  background: var(--line); /* R88: прежний #fafafa — ближайший токен палитры */
}
.ind-li {
  padding: var(--s-5) var(--s-6);
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--ink-3);
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: var(--bw-hair) solid var(--line);
  cursor: pointer;
  transition: color var(--dur-med) var(--ease);
  position: relative;
}
.ind-li:last-child {
  border-bottom: none;
}
@media (hover: hover) and (pointer: fine) {
  .ind-li:hover {
    color: var(--ink);
  }
}
.ind-li.active {
  color: var(--ink);
  background: var(--surface);
}
.ind-li.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--bw-mark);
  background: var(--primary);
}

.ind-panels {
  position: relative;
}
.ind-panel {
  display: none;
  padding: var(--s-8);
  animation: fadeIn var(--dur-slow) var(--ease);
}
.ind-panel.active {
  display: block;
}

/* Horizontal Tabs (v2) */
.ind-tabs-v2 {
  display: block;
  border: none;
  margin-top: var(--s-7);
  margin-bottom: var(--s-8);
}
.ind-tabs-v2 .ind-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  border: none;
  border-bottom: var(--bw-hair) solid var(--line-2);
  background: transparent;
}
.ind-tabs-v2 .ind-li {
  padding: var(--s-4) var(--s-5);
  border-bottom: none;
  white-space: normal;
  position: relative;
}
.ind-tabs-v2 .ind-li.active {
  background: transparent;
  color: var(--ink);
}
.ind-tabs-v2 .ind-li.active::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--bw-mark);
  width: 100%;
  top: auto;
  background: var(--primary);
}
.ind-tabs-v2 .ind-panel {
  padding: var(--s-8) 0 0;
}

/* Accordion trigger hidden on desktop */
.ind-accordion-trigger {
  display: none;
}

@media (max-width: 959px) {
  /* Полностью скрываем горизонтальный скролл табов на планшетах и мобильных */
  .ind-tabs .ind-list,
  .ind-tabs-v2 .ind-list,
  [role="tablist"].ind-list {
    display: none;
  }

  .ind-tabs,
  .ind-tabs-v2 {
    display: block;
    margin-top: var(--s-4);
    margin-bottom: var(--s-6);
    border: none;
  }

  .ind-panels {
    border-top: var(--bw-hair) solid var(--line-2);
  }

  /* Панели становятся строками вертикального аккордеона */
  .ind-tabs .ind-panel,
  .ind-tabs-v2 .ind-panel,
  .ind-panel[hidden] {
    display: block;
    padding: 0;
    border-bottom: var(--bw-hair) solid var(--line-2);
    animation: none;
  }

  /* Кнопка раскрытия аккордеона */
  .ind-accordion-trigger {
    display: flex;
    width: 100%;
    min-height: var(--sz-control-h);
    padding: var(--s-4) 0;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--ff-body);
    font-size: var(--fs-lede);
    font-weight: 500;
    color: var(--ink);
    text-align: left;
    user-select: none;
    transition: color var(--dur-med) var(--ease);
  }

  .ind-accordion-trigger:focus-visible {
    outline: var(--bw-mark) solid var(--primary);
    outline-offset: calc(-1 * var(--bw-mark));
  }

  .ind-accordion-title {
    flex: 1 1 auto;
    padding-right: var(--s-3);
  }

  .ind-accordion-trigger .acc-arr {
    font-size: var(--fs-h2);
    line-height: 1;
    color: var(--ink-3);
    transition: transform var(--dur-med) var(--ease), color var(--dur-med) var(--ease);
    font-weight: 400;
    flex: 0 0 auto;
  }

  .ind-panel.active > .ind-accordion-trigger .acc-arr {
    transform: rotate(45deg);
    color: var(--primary);
  }

  /* Сворачивание / разворачивание содержимого панели */
  .ind-panel:not(.active) > .ind-panel-inner {
    display: none !important;
  }

  .ind-panel.active > .ind-panel-inner {
    display: block !important;
    padding-top: var(--s-2);
    padding-bottom: var(--s-6);
    animation: fadeIn var(--dur-fast) var(--ease);
  }

  /* Скрываем дублирующий h2.l2 внутри содержимого, так как заголовок уже в кнопке аккордеона */
  .ind-panel-inner > .tab-body > h2.l2:first-child {
    display: none;
  }
}

/* ============================================================
   13. ACCORDION & FAQ
   ============================================================ */

/* ============================================================
   14. STEPPER (.proc-grid-5 & .proc-grid-4)
   ============================================================ */
.proc-dot.active {
  background: var(--primary);
  border-color: var(--primary);
}

/* ============================================================
   15. VIDEO COMPONENT
   ============================================================ */
.video-block {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  background: var(--ink);
  border: var(--bw-hair) solid var(--line-2);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
}
.video-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: repeating-linear-gradient(135deg, transparent 0 var(--sz-hatch), color-mix(in srgb, var(--surface) 5%, transparent) var(--sz-hatch) calc(var(--sz-hatch) + var(--bw-thin)));
}
.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: var(--sz-play-w);
  height: var(--sz-play-h);
  background: var(--err); /* R88: палитра закрыта — ближайший красный палитры вместо #ff0000 */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-med) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .video-block:hover .video-play {
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* Product Card */
.prod-card {
  background: var(--surface);
  border: var(--bw-hair) solid var(--line-2);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur-med) var(--ease), background var(--dur-med) var(--ease);
  text-decoration: none;
  color: inherit;
}
@media (hover: hover) and (pointer: fine) {
  .prod-card:hover {
    background: var(--accent-soft);
    border-color: var(--ink-4);
  }
}

/* Form Inputs */
input, textarea, select {
  font-family: var(--ff-body);
  font-size: var(--fs-lede);
  color: var(--ink);
  background: var(--form-bg);
  border: var(--bw-thin) solid var(--line-2);
  height: var(--sz-field-h);
  padding: 0 var(--s-4);
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  background: var(--surface);
  border-color: var(--primary);
  outline: none;
}
textarea {
  height: var(--sz-textarea-h);
  padding: var(--s-4);
  resize: vertical;
}

input[type="checkbox"] {
  width: var(--sz-checkbox);
  height: var(--sz-checkbox);
  accent-color: var(--primary);
  position: relative;
  flex-shrink: 0;
}
input[type="checkbox"]::after {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--s-3));
}

/* ============================================================
   17. ANIMATIONS & REDUCED MOTION
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(var(--s-1)); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
  }
}

/* --- Clean White Footer --- */
#footer,
#footer-widgets,
.site-footer {
  background-color: var(--surface) !important;
  color: var(--ink-2);
  border-top: var(--bw-hair) solid var(--line-2);
  padding: var(--s-8) 0 var(--s-5);
  margin-top: var(--s-8);
}

#footer-widgets {
  border-top: none;
  padding-top: 0;
}

#footer .footer-title {
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: var(--fs-lede);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-4);
}

#footer a {
  color: var(--ink-3) !important;
  text-decoration: none !important;
  border-bottom: none !important;
  font-size: var(--fs-body);
  line-height: 2 !important;
  transition: color var(--dur-med) var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  #footer a:hover {
    color: var(--primary) !important;
  }
}

/* --- Clean White Footer --- */
#footer,
#footer-widgets,
.site-footer {
  background-color: var(--surface) !important;
  color: var(--ink-2);
  border-top: var(--bw-hair) solid var(--line-2);
  padding: var(--s-8) 0 var(--s-5);
  margin-top: var(--s-8);
}

#footer-widgets {
  border-top: none;
  padding-top: 0;
  background-color: var(--surface) !important;
}

#footer .footer-title {
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: var(--fs-lede);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-4);
}

#footer a {
  color: var(--ink-3) !important;
  text-decoration: none !important;
  border-bottom: none !important;
  font-size: var(--fs-body);
  line-height: 2 !important;
  transition: color var(--dur-med) var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  #footer a:hover {
    color: var(--primary) !important;
  }
}

#footer a[href^="tel:"],
#footer a[href^="mailto:"] {
  color: var(--ink) !important;
  font-size: var(--fs-lede);
  font-weight: 500;
}
@media (hover: hover) and (pointer: fine) {
  #footer a[href^="tel:"]:hover,
  #footer a[href^="mailto:"]:hover {
    color: var(--primary) !important;
  }
}

#footer svg {
  stroke: var(--ink-3);
  fill: var(--ink-3);
}

.footer-widgets-copy {
  background-color: var(--surface);
  border-top: var(--bw-hair) solid var(--line);
  color: var(--ink-3);
  font-size: var(--fs-caption);
  line-height: 1.5;
  padding-top: var(--s-5);
  margin-top: var(--s-7);
}

.footer-widgets-copy a {
  color: var(--ink-3) !important;
}
@media (hover: hover) and (pointer: fine) {
  .footer-widgets-copy a:hover {
    color: var(--primary) !important;
  }
}

/* --- Form Submit Buttons (CF7 / WPForms / Elementor) --- */
button[type="submit"] {
  background-color: var(--primary) !important;
  color: var(--surface);
  border: 0;
  border-radius: 0;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: var(--fs-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  /* Высота и отступы — от .btn (токен components.btn: 16px 24px), как у
     прочих кнопок; прежние 52px / 0 24px были вне шкалы (WORKLOG 247). */
  cursor: pointer;
  transition: background-color var(--dur-med) var(--ease) !important;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  button[type="submit"]:hover {
    background-color: var(--primary-hover) !important;
    color: var(--surface) !important;
  }
}

/* ============================================================
   19. BUTTON ACTIVE/HOVER STATE & NO-UNDERLINE
   ------------------------------------------------------------
   Здесь стоял теневой :root с --primary-hover: #702753. Он шёл после
   design-tokens.css и перебивал скомпилированное значение, поэтому решение
   design.md v3.34 сменить primary-hover на #18492b до страниц не доезжало,
   а проверка 20 этого не видела: она сверяет design.md со сгенерированным
   файлом, а не с тем, что в итоге считает браузер (WORKLOG 72.2).
   Токены объявляются только в design-tokens.css — стережёт проверка 21.
   ============================================================ */

.btn,
.btn-sm,
.btn-upper,
a.btn,
a.btn-sm,
button[type="submit"] {
  text-decoration: none;
  border-bottom: none;
}

.btn:active,
.btn:focus,
a.btn:active,
.btn-sm:active,
button[type="submit"]:active {
  background-color: var(--primary-hover) !important;
  color: var(--surface) !important;
  text-decoration: none !important;
  border-bottom: none !important;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover,
  a.btn:hover,
  .btn-sm:hover,
  a.btn-sm:hover,
  button[type="submit"]:hover {
    background-color: var(--primary-hover) !important;
    color: var(--surface) !important;
    text-decoration: none !important;
    border-bottom: none !important;
  }
}

/* ============================================================
   20. STRICT BUTTON NO-UNDERLINE OVERRIDES
   ============================================================ */
.btn,
.btn-sm,
.btn-upper,
a.btn,
a.btn-sm,
button[type="submit"] {
  text-decoration: none;
  border-bottom: none;
}

.btn:focus,
.btn:active,
a.btn:focus,
a.btn:active {
  text-decoration: none !important;
  border-bottom: none !important;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover,
  .btn-sm:hover,
  a.btn:hover,
  a.btn-sm:hover,
  button[type="submit"]:hover {
    text-decoration: none !important;
    border-bottom: none !important;
  }
}

/* btn-ghost hover: preserve 4-sided border, only kill underline */
.btn-ghost:focus,
.btn-ghost:active,
a.btn-ghost:focus,
a.btn-ghost:active {
  text-decoration: none !important;
}
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover,
  a.btn-ghost:hover {
    text-decoration: none !important;
  }
}

/* --- rc-product-card --- */
.prod-card {
  position: relative;
  background: var(--surface);
  border: var(--bw-thin) solid var(--line-2);
  display: flex;
  flex-direction: column;
  padding: var(--s-5);
  transition: border-color var(--dur-med) var(--ease);
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
}
@media (hover: hover) and (pointer: fine) {
  .prod-card:hover {
    border-color: var(--primary);
  }
}
.prod-badge {
  position: absolute;
  /* tokens: typography.micro, spacing.s1/s2/s3 (WORKLOG 328: было 11px и 2px вне шкалы) */
  top: var(--s-3);
  left: var(--s-3);
  background: var(--primary);
  color: var(--surface);
  font-size: var(--fs-caption);
  font-weight: 500;
  text-transform: uppercase;
  padding: var(--s-1) var(--s-2);
  letter-spacing: 0.08em;
  z-index: 2;
}
.prod-card-media {
  width: 100%;
  height: var(--sz-thumb-h);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
  background: var(--surface);
}
.prod-card-media img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.prod-card-title {
  font-size: var(--fs-lede);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 var(--s-3);
}
.prod-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: var(--bw-hair) solid var(--line-2);
}
.prod-card-price {
  font-size: var(--fs-body);
  color: var(--ink-3);
}
.price-val {
  /* Цена — токен `num` (design.md, «Текстовые роли»: .num — цена). */
  font-size: var(--fs-h2);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.prod-card-btn {
  white-space: nowrap;
}

/* --- Shop Page / Sidebar / Goods Grid --- */
.shop-columns {
  display: flex;
  gap: var(--s-8);
  align-items: flex-start;
  width: 100%;
}

.shop-sidebar {
  flex: 0 0 var(--sz-sidebar);
  max-width: var(--sz-sidebar);
  min-width: var(--sz-sidebar-min);
}

.shop-main {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
}

@media (max-width: 959px) {
  .shop-columns {
    flex-direction: column;
  }
  .shop-sidebar {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }
}

.shop-links-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  padding: var(--s-2) 0 var(--s-3);
  max-height: none;
  overflow: visible;
}

.shop-links-list a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--fs-body);
  line-height: 1.5;
  padding: 0;
  transition: color var(--dur-fast) var(--ease), padding-left var(--dur-fast) var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .shop-links-list a:hover {
    color: var(--ink);
    padding-left: var(--s-1);
  }
}

/* Канон design.md § 08 Seg: рубрикатор каталога оборудования со счётчиками */
.shop-filter-bar,
.shop-filter-bar.seg {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-4) 0 var(--s-6);
  width: 100%;
  border: none;
  padding: 0;
  overflow: visible !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.shop-filter-bar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.shop-filter-bar .rubric-seg__item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  border: var(--bw-hair) solid var(--line-2) !important;
  border-radius: 0;
  background: var(--surface) !important;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.shop-filter-bar .rubric-seg__item .micro {
  color: var(--ink-3);
  font-size: var(--fs-caption);
  font-feature-settings: "tnum" 1;
}

@media (hover: hover) and (pointer: fine) {
  .shop-filter-bar .rubric-seg__item:hover {
    border-color: var(--primary) !important;
    color: var(--ink) !important;
  }
}

.shop-filter-bar .rubric-seg__item.is-active,
.shop-filter-bar .rubric-seg__item[aria-pressed="true"] {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--surface) !important;
}

.shop-filter-bar .rubric-seg__item.is-active .micro,
.shop-filter-bar .rubric-seg__item[aria-pressed="true"] .micro {
  color: var(--surface) !important;
  opacity: 0.85 !important;
}

/* Details / Summary Accordion & Disclosure */
details.acc-cell-desc {
  border-bottom: var(--bw-hair) solid var(--line-2);
  padding: var(--s-4) 0;
  transition: all 0.2s ease;
}

details.acc-cell-desc summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-lede);
  font-weight: 500;
  color: var(--ink);
  user-select: none;
}

details.acc-cell-desc summary::-webkit-details-marker {
  display: none;
}

details.acc-cell-desc summary h3.l3 {
  margin: 0;
}

details.acc-cell-desc summary .acc-arr {
  font-size: var(--fs-h2);
  line-height: 1;
  color: var(--ink-3);
  transition: transform 0.2s ease;
  font-weight: 400;
}

details.acc-cell-desc[open] summary .acc-arr {
  transform: rotate(45deg);
  color: var(--primary);
}

details.acc-cell-desc .acc-content {
  /* Ответ аккордеона — `body` / `ink-2` (design.md, контракт .acc). */
  padding-top: var(--s-3);
  color: var(--ink-2);
  font-size: var(--fs-body);
  line-height: 1.55;
}

.goods__card.is-hidden,
.goods__card[hidden] {
  display: none !important;
}

/* --- Goods Grid & Shortcodes --- */
.goods__category {
  margin: var(--s-4) 0 var(--s-8);
  width: 100%;
}

.prod-grid,
.goods__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
  margin-bottom: var(--s-7);
  width: 100%;
  box-sizing: border-box;
}

.prod-grid.cols-3, .goods__grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prod-grid.cols-4, .goods__grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.goods__category .goods__grid[data-count="4"],
.prod-grid[data-count="4"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-5);
}
@media (max-width: 959px) {
  .goods__category .goods__grid[data-count="4"],
  .prod-grid[data-count="4"] {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
}

/* Сетка товаров внутри колонки блока (шорткод goods_cats в `.layout`):
   число колонок — по ширине колонки. На 1280 их три, на 960 — две; с
   repeat(3, 1fr) или repeat(4, 1fr) карточки не сжимались и вылезали за экран. */
.layout .prod-grid,
.layout .goods__grid,
.layout .goods__category .goods__grid,
.layout .prod-grid[data-count="4"],
.layout .goods__category .goods__grid[data-count="4"] {
  grid-template-columns: repeat(auto-fill, minmax(var(--sz-card-min-s), 1fr));
}

.goods__card {
  display: flex !important;
  flex-direction: column;
  height: 100% !important;
  background: var(--surface) !important;
  border: var(--bw-thin) solid var(--line-2);
  padding: var(--s-5);
  box-sizing: border-box;
  text-decoration: none;
  transition: border-color var(--dur-med) var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .goods__card:hover {
    border-color: var(--primary) !important;
  }
}

.goods__head {
  display: flex;
  flex-direction: column;
  margin-bottom: auto;
}

.goods__omg {
  width: 100% !important;
  height: var(--sz-thumb-h);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
  background: var(--surface) !important;
}

.goods__omg a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 100% !important;
}

.goods__omg img {
  max-height: 100%;
  max-width: 100%;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

.goods__title {
  /* Заголовок карточки — `.l3` = токен h4: 16px / 500. */
  font-size: var(--fs-lede);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: var(--s-3);
}

.goods__title a {
  color: var(--ink);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .goods__title a:hover {
    color: var(--primary) !important;
  }
}

.goods__price {
  font-size: var(--fs-body);
  color: var(--ink-3);
  margin-bottom: var(--s-4);
}

.goods__price .price-val {
  font-size: var(--fs-h2);
  font-weight: 400;
  color: var(--ink);
}

.goods__button {
  margin-top: auto !important;
  padding-top: var(--s-3);
  border-top: var(--bw-hair) solid var(--line-2);
}

.goods__button .btn,
.goods__button .goods__addCart {
  width: 100% !important;
  text-align: center;
  display: block;
  /* .btn--compact: padding 16px (components.btn--compact). */
  padding: var(--s-4) !important;
}

@media (max-width: 959px) {
  .prod-grid,
.goods__grid,
.prod-grid.cols-3,
.goods__grid.cols-3,
.prod-grid.cols-4,
.goods__grid.cols-4 {
    grid-template-columns: 1fr;
  }
}

.goods-single-card-wrap {
  width: 100% !important;
  display: flex;
  flex: 1 1 auto;
  margin: 0;
}

.goods-single-card-wrap .prod-card,
.goods-single-card-wrap .goods__card {
  width: 100% !important;
  max-width: 100%;
  flex: 1 1 auto;
  display: flex !important;
  flex-direction: column;
  padding: var(--s-6);
  background: var(--surface) !important;
  border: var(--bw-thin) solid var(--line-2);
  box-sizing: border-box;
  text-decoration: none;
  overflow: hidden !important;
  position: relative;
  transition: border-color var(--dur-med) var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .goods-single-card-wrap .goods__card:hover {
    border-color: var(--primary) !important;
  }
}

.goods-single-card-wrap .goods__head {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  width: 100% !important;
}

.goods-single-card-wrap .goods__omg {
  width: 100% !important;
  height: var(--sz-media-h);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  background: var(--surface) !important;
  padding: var(--s-1);
  box-sizing: border-box;
  overflow: hidden !important;
}

.goods-single-card-wrap .goods__omg a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 100% !important;
}

.goods-single-card-wrap .goods__omg img {
  max-height: 100%;
  max-width: 100%;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

.goods-single-card-wrap .goods__title {
  font-size: var(--fs-lede);
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  margin: var(--s-3) 0 var(--s-2) 0;
  position: static;
  flex: 0 0 auto;
  min-height: var(--sz-control-h);
  display: flex;
  align-items: center;
  justify-content: center;
}

.goods-single-card-wrap .goods__title a {
  color: var(--ink);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .goods-single-card-wrap .goods__title a:hover {
    color: var(--primary) !important;
    text-decoration: underline !important;
  }
}

.goods-single-card-wrap .goods__price {
  font-size: var(--fs-body);
  margin: 0 0 var(--s-4) 0;
  padding-top: 0;
  text-align: center;
}

.goods-single-card-wrap .goods__price .price-val {
  font-size: var(--fs-h2);
  font-weight: 400;
  color: var(--ink);
}

.goods-single-card-wrap .goods__button {
  width: 100% !important;
  margin-top: auto !important;
  padding-top: 0;
  border-top: none;
}

@media (min-width: 960px) {
  .hide-pc {
    display: none !important;
  }
}

@media (max-width: 959px) {
  .col-md-auto > .header__contact {
    display: flex;
    align-items: center;
    gap: var(--s-3) !important;
  }
  .col-md-auto > .header__contact .header__social,
  .col-md-auto > .header__contact .header__action {
    display: none;
  }
  .col-md-auto > .header__contact a[href^="tel:"] {
    font-size: var(--fs-body) !important;
    font-weight: 500;
  }
  .oceanwp-mobile-menu-icon {
    display: inline-flex !important;
    align-items: center;
    margin-left: var(--s-2);
  }
  .oceanwp-mobile-menu-icon button {
    font-size: var(--fs-h2);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--sz-icon-btn-mobile);
    height: var(--sz-icon-btn-mobile);
    border: var(--bw-hair) solid var(--line-2);
    background: var(--surface);
    cursor: pointer;
    padding: 0;
  }
  .hide-pc {
    display: block !important;
  }
  .header__contact.hide-pc {
    display: flex !important;
    flex-direction: column;
    gap: var(--s-4) !important;
    margin-top: var(--s-5);
  }
}

/* Global Flat Invariant: 0 radius, 0 shadow, 2px focus ring */
* {
  box-sizing: border-box;
  border-radius: 0;
}

.footer-rating-badge {
  border-bottom: var(--bw-hair) solid var(--line-2);
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-4);
}

em {
  font-style: normal;
  font-weight: 500;
  color: var(--ink);
}

summary {
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

a, button, input, select, textarea, summary, [tabindex] {
  outline-color: var(--focus-ring);
  outline-offset: var(--bw-mark);
}

/* --- 01 Layout (.layout, [data-cols], [data-col], [data-c], .wrap, .sec) --- */
.sec, [data-sec] {
  padding: var(--space-sec) 0;
  border-bottom: var(--bw-hair) solid var(--line);
  margin-top: 0;
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Разделитель снимается у последней секции перед подвалом: границей служит фон подвала */
.sec:last-child,
.sec:last-of-type,
article > .sec:last-child,
article > .sec:last-of-type {
  border-bottom: none;
}

.wrap, [data-wrap],
.rc-article > :not(.sec):not(.hero-sec):not(.wp-block-group.sec):not(.rc-anchor-target) {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--gutter);
  box-sizing: border-box;
}

.layout, [data-cols] {
  display: grid;
  width: 100%;
}

[data-cols="1"] { grid-template-columns: minmax(0, 1fr); }
[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-10); }
[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-8); }
[data-cols="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-5); }
[data-cols="side"] { grid-template-columns: 1.3fr 1fr; gap: var(--s-10); align-items: start; }
[data-cols="head"] { grid-template-columns: 1fr 2fr; gap: var(--s-10); align-items: start; }
[data-cols="nav"] { grid-template-columns: var(--sz-nav-col) minmax(0, 1fr); gap: var(--s-8); align-items: start; }

[data-c="2"], [data-col="2"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
[data-c="3"], [data-col="3"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
[data-c="4"], [data-col="4"] { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
[data-c="5"], [data-col="5"] { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
[data-c="side"], [data-col="side"] { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-10); align-items: start; }
[data-c="head"], [data-col="head"] { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-10); align-items: start; }
[data-c="nav"], [data-col="nav"] { display: grid; grid-template-columns: var(--sz-nav-col) 1fr; gap: var(--s-8); align-items: start; }

/* --- 02 Data Grid (.hl) --- */
.hl {
  display: grid;
  border-top: var(--bw-hair) solid var(--line-2);
  border-left: var(--bw-hair) solid var(--line-2);
}

.hl > *, [data-hover-cell] {
  padding: var(--s-4) var(--s-5);
  border-right: var(--bw-hair) solid var(--line-2);
  border-bottom: var(--bw-hair) solid var(--line-2);
  box-sizing: border-box;
}

@media (hover: hover) and (pointer: fine) {
  [data-hover-cell]:hover {
    background: var(--accent-soft);
  }
}

.hl--spec {
  background: var(--accent-soft);
}

/* --- 03 Cards (.cards, .card) --- */
.cards, [data-cards] {
  display: grid;
  gap: var(--s-6);
}

.card, [data-hover-card] {
  background: var(--surface);
  border: var(--bw-hair) solid var(--line-2);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  transition: background var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover,
  [data-hover-card]:hover {
    background: var(--accent-soft);
    border-color: var(--ink-4);
  }
}

/* --- 04 Data Table (.cmp-wrap, .cmp, --compare) --- */

.cmp th.active {
  background: var(--primary);
  color: var(--surface);
}

/* --- 05 Stepper (.proc, .proc-step, .proc-line, .proc-dot, .proc-num, .proc-v2) --- */

.proc-dot.active {
  background: var(--primary);
  border-color: var(--primary);
}

[data-wm] {
  position: absolute;
  top: 0;
  right: 0;
  font-size: var(--text-wm);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--line-2);
}

[data-wm].active {
  color: var(--primary);
  opacity: 0.25;
}

/* --- 06 Tabs (.tabs, .tab-list, .tab, .tab-panel, .ind-tabs) --- */
.ind-tabs, .ind-tabs-v2 {
  width: 100%;
  text-align: left;
}

[role="tablist"], .ind-list {
  display: flex;
  justify-content: flex-start;
  text-align: left;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  border-bottom: var(--bw-hair) solid var(--line-2);
}

[role="tab"], .ind-li {
  position: relative;
  flex: 0 0 auto;
  background: transparent;
  border: none;
  padding: var(--s-4) var(--s-6);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  color: var(--ink-3);
  text-align: left;
  justify-content: flex-start;
  border-bottom: var(--bw-mark) solid transparent;
  transition: color var(--dur-med) var(--ease);
}

[role="tabpanel"], .ind-panel, .ind-panels, .tab-body {
  text-align: left;
}

[role="tabpanel"] > *, .ind-panel > * {
  text-align: left;
}

@media (hover: hover) and (pointer: fine) {
  [role="tab"]:hover {
    color: var(--ink);
  }
}

.tab[aria-selected="true"], [role="tab"][aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--primary);
}

[data-cols="nav"] > [role="tablist"] {
  flex-direction: column;
  border-right: var(--bw-hair) solid var(--line);
  border-bottom: none;
  /* Производное канона: design.md § Цвет — фон списка вертикальных табов. */
  background: var(--line);
}

.tabs--vert [role="tab"][aria-selected="true"] {
  background: var(--surface);
  border-left-color: var(--primary);
}

/* --- 07 Accordion (.acc, .faq-list, .acc--split) --- */

.acc details[open] summary::after {
  content: "×";
  color: var(--primary);
}

/* --- 08 Segments & Rows (.seg, .row, .pager) --- */
.seg, [role="group"] {
  display: flex;
  border: var(--bw-hair) solid var(--line-2);
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}

.seg button {
  min-width: var(--sz-touch);
  padding: var(--s-3) var(--s-5);
  font-family: var(--ff-body);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-right: var(--bw-hair) solid var(--line-2);
  cursor: pointer;
  background: transparent;
  color: var(--ink-3);
  text-decoration: none;
  transition: color var(--dur-med) var(--ease);
}

.seg button:last-child {
  border-right: none;
}

.seg button[aria-pressed="true"], .seg a[aria-current="page"] {
  background: var(--primary);
  color: var(--surface);
}

/* Счётчик внутри активной метки наследует её цвет: `ink-3` по канону задан
   счётчику, но на заливке primary он почти не читается, а канон говорит, что у
   активного элемента цвет — surface. Замерено на рубрикаторе проектов. */
.seg button[aria-pressed="true"] .micro, .seg a[aria-current="page"] .micro {
  color: inherit;
}

/* Рубрикатор архива проектов. На узком экране ряд переносится, и борта справа
   повисают посреди строки: метки становятся полной шириной, разделитель —
   нижним. Правило узкое (`.rubric-seg`), потому что общий каркас `.seg`
   используют и ряды страниц, где перенос выглядит иначе.
   Порог — `mobile-max` из тройки канона design.md (778px), а не выдуманный:
   четвёртый брейкпоинт краснит стража шкал и не имеет основания. */
@media (max-width: 959px) {
  .rubric-seg {
    width: 100%;
  }

  .rubric-seg .rubric-seg__item {
    flex: 1 1 100%;
    text-align: left;
    border-right: none;
    border-bottom: var(--bw-hair) solid var(--line-2);
  }

  .rubric-seg .rubric-seg__item:last-child {
    border-bottom: none;
  }
}

.row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: var(--bw-hair) solid var(--line);
  color: var(--ink-2);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .row:hover {
    color: var(--ink);
  }
}

/* --- 09 Forms & Fields (input, select, textarea, .file-field) --- */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select {
  width: 100%;
  max-width: none;
  font-family: var(--ff-body);
  font-size: var(--fs-lede);
  background: var(--form-bg);
  color: var(--ink);
  border: var(--bw-thin) solid var(--line-2);
  height: var(--sz-field-h);
  padding: 0 var(--s-4);
  box-sizing: border-box;
  border-radius: 0;
  transition: background var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}

input:focus, select:focus, textarea:focus {
  background: var(--surface);
  border-color: var(--primary);
  outline-color: var(--focus-ring);
  outline-offset: var(--bw-mark);
}

textarea {
  width: 100%;
  font-family: var(--ff-body);
  font-size: var(--fs-lede);
  background: var(--form-bg);
  color: var(--ink);
  border: var(--bw-thin) solid var(--line-2);
  height: var(--sz-textarea-h);
  padding: var(--s-4);
  resize: vertical;
  box-sizing: border-box;
  border-radius: 0;
}

/* Override OceanWP: form input[type=number]{max-width:50px} (line ~1991) */
form input[type=number] {
  max-width: none;
  width: 100%;
  padding: 0 var(--s-4);
}

/* Отключение стрелок спиннера: значения длины и ширины вводятся числом */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* --- 10 Technical Note (.tech-note) --- */
.tech-note, aside.tech-note {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  padding: var(--s-7) 0;
  border-top: var(--bw-hair) solid var(--line-2);
  border-bottom: var(--bw-hair) solid var(--line-2);
  margin-top: var(--s-8);
  margin-bottom: var(--s-6);
  background: transparent;
}

.tech-note::before {
  content: "";
  width: var(--sz-marker);
  height: var(--sz-marker);
  background: var(--primary);
  margin-top: var(--s-2);
  flex-shrink: 0;
}

.tech-note .article-content {
  flex: 1 1 auto;
  /* Флекс-элемент без min-width: 0 растягивается по таблице внутри и даёт
     прокрутку вбок (каталог блоков, «Вывод» с Markdown-таблицей). */
  min-width: 0;
}
.tech-note .article-content > :first-child {
  margin-top: 0;
}
.tech-note .article-content > :last-child {
  margin-bottom: 0;
}

/* --- 14 Buttons & Action Row (.btn, .action-row) --- */
.btn, a.btn, button.btn {
  background: var(--primary);
  color: var(--surface);
  padding: var(--s-4) var(--s-6);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 500;
  text-decoration: none;
  /* Прозрачная рамка толщины .btn-ghost — кнопки ряда одной высоты (WORKLOG 247). */
  border: var(--bw-hair) solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur-med) var(--ease);
  box-sizing: border-box;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover,
  a.btn:hover,
  button.btn:hover {
    background: var(--primary-hover) !important;
    color: var(--surface) !important;
  }
}

.btn-ghost, a.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: var(--bw-hair) solid var(--line-2);
  border-bottom: var(--bw-hair) solid var(--line-2);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover,
  a.btn-ghost:hover {
    color: var(--ink) !important;
    border-color: var(--ink) !important;
  }
}

.btn-sm {
  padding: var(--s-4) !important;
}

.action-row, [data-row="act"], [data-row="cta"] {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  align-items: center;
}

/* --- 15 Typography & Micro-elements (.eyebrow, .tag, .status, .micro, .caption, .num) --- */
.eyebrow, [data-eyebrow] {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow::before {
  content: "";
  width: var(--sz-rule-eyebrow);
  height: var(--bw-thin);
  background: var(--primary);
  flex-shrink: 0;
}

.tag, span.tag {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-hover);
  background: var(--accent-soft);
  padding: var(--s-1) var(--s-2);
  width: fit-content;
}

[data-status] {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: var(--s-3) 0 0;
}

.micro {
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.caption {
  font-size: var(--fs-caption);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-3);
}

.sec-lede {
  font-size: var(--fs-lede);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-2);
}

/* --- Scroller Dots --- */
[data-dots] {
  display: none;
  gap: var(--s-2);
  margin-top: var(--s-3);
  justify-content: center;
}

[data-dots] > span {
  width: var(--sz-marker);
  height: var(--sz-marker);
  background: var(--line-2);
  flex-shrink: 0;
}

[data-dots] > span[data-on="1"], [data-dots] > span.is-active {
  background: var(--primary);
}

/* --- Responsive Rules --- */
@media (max-width: 959px) {
  [data-cols="side"], [data-cols="nav"], [data-cols="head"],
  [data-c="side"], [data-c="nav"], [data-c="head"],
  [data-col="side"], [data-col="nav"], [data-col="head"] {
    /* minmax(0, …): иначе колонка растягивается под таблицу (min-width
       --sz-table-min) во вкладке «столбцом слева» — 820 px на экране 360
       (найдено каталогом блоков, WORKLOG 332). */
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-8);
  }
  [data-cols="5"], [data-cols="4"], [data-cols="3"],
  [data-c="5"], [data-c="4"], [data-c="3"],
  [data-col="5"], [data-col="4"], [data-col="3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 959px) {
  [data-wm] {
    font-size: var(--text-wm);
  }
  [data-procline] {
    display: none;
  }
  [data-scroll] {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--s-5);
    scrollbar-width: none;
  }
  [data-scroll]::-webkit-scrollbar {
    display: none;
  }
  [data-scroll] > * {
    flex: 0 0 86%;
    scroll-snap-align: start;
  }
  [data-dots] {
    display: flex;
  }
  [data-cols="2"], [data-cols="3"], [data-cols="4"],
  [data-c="2"], [data-c="3"], [data-c="4"],
  [data-col="2"], [data-col="3"], [data-col="4"] {
    grid-template-columns: 1fr !important;
  }
  .wrap, [data-wrap],
  .rc-article > :not(.sec):not(.hero-sec):not(.wp-block-group.sec):not(.rc-anchor-target) {
    padding: 0 var(--gutter);
  }
  .sec, [data-sec] {
    padding: var(--space-sec) 0;
  }
  .action-row, [data-row="act"], [data-row="cta"] {
    flex-direction: column;
    gap: var(--s-3) !important;
    align-items: stretch !important;
  }
  .action-row > *, [data-row="act"] > *, [data-row="cta"] > * {
    width: 100%;
  }
}

/* ============================================================
   LOGOS GRID (Каркас 13 / Б13)
   ============================================================ */
.logos-block {
  margin-bottom: var(--s-8);
}
.logos-head {
  margin-bottom: var(--s-8);
}
.logos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: var(--bw-hair) solid var(--line-2);
  border-left: var(--bw-hair) solid var(--line-2);
}
.logo-item {
  border-right: var(--bw-hair) solid var(--line-2);
  border-bottom: var(--bw-hair) solid var(--line-2);
  padding: var(--s-4) var(--s-3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  min-height: var(--sz-logo-cell-min-h);
}
.logo-item img {
  max-width: var(--sz-logo-img-w);
  max-height: var(--sz-logo-img-h);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: opacity var(--dur-med) var(--ease), filter var(--dur-med) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
  }
}
@media (max-width: 959px) {
  .logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 959px) {
  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Single-row scroller for client logos */
.logos-scroller-wrap {
  position: relative;
  width: 100%;
}
.logos-grid.scroller-row {
  display: flex;
  grid-template-columns: none;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-top: var(--bw-hair) solid var(--line-2);
  border-left: var(--bw-hair) solid var(--line-2);
}
.logos-grid.scroller-row::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.logos-grid.scroller-row .logo-item {
  flex: 0 0 var(--sz-logo-cell);
  min-width: var(--sz-logo-cell);
  max-width: var(--sz-logo-cell);
  height: var(--sz-logo-cell-h);
  min-height: var(--sz-logo-cell-h);
  border-right: var(--bw-hair) solid var(--line-2);
  border-bottom: var(--bw-hair) solid var(--line-2);
  scroll-snap-align: start;
}

/* --- Canonical Breadcrumbs --- */
.rc-breadcrumbs {
  padding: var(--s-4) 0 var(--s-2);
  margin: 0;
}

.has-breadcrumbs > .sec:first-child,
.rc-breadcrumbs-wrap + .rc-article > .sec:first-child {
  padding-top: var(--s-8);
}

.has-breadcrumbs > .intro-sec:first-child,
.rc-breadcrumbs-wrap + .rc-article > .intro-sec:first-child {
  padding-top: var(--s-4);
}

@media (max-width: 959px) {
  .has-breadcrumbs > .sec:first-child,
  .rc-breadcrumbs-wrap + .rc-article > .sec:first-child {
    padding-top: var(--s-6);
  }

  .has-breadcrumbs > .intro-sec:first-child,
  .rc-breadcrumbs-wrap + .rc-article > .intro-sec:first-child {
    padding-top: var(--s-3);
  }
}

.rc-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.rc-breadcrumbs__list li {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-caption);
  line-height: 1.4;
  margin: 0;
  padding: 0;
}

.rc-breadcrumbs__list li a {
  font-size: var(--fs-caption);
  font-weight: 400;
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: none;
  transition: color var(--dur-med) var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .rc-breadcrumbs__list li a:hover {
    color: var(--ink) !important;
  }
}

.rc-breadcrumbs__sep {
  font-size: var(--fs-caption);
  color: var(--ink-4);
  margin-left: var(--s-2);
  user-select: none;
}

.rc-breadcrumbs__list li [aria-current="page"],
.rc-breadcrumbs__list li span:not(.rc-breadcrumbs__sep) {
  font-size: var(--fs-caption);
  font-weight: 400;
  color: var(--ink);
}

/* --- Canonical Frame 16 Footer --- */
#footer {
  border-top: var(--bw-hair) solid var(--line-2);
  background: var(--surface) !important;
  padding: 0;
  margin-top: var(--s-10);
}

#footer-widgets {
  padding: 0;
  background: transparent !important;
}

.footer-widgets-inner.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.footer-widgets-inner .row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  padding: 0;
  margin: var(--s-10) 0 0 0;
  border: var(--bw-hair) solid var(--line-2);
  background: transparent;
}

.footer-widgets-inner .row > div,
.footer-col {
  padding: var(--s-6); /* spacing.s6: 24px */
  margin: 0;
  border: none;
  border-right: var(--bw-hair) solid var(--line-2);
  width: auto;
  max-width: none;
  flex: none;
  height: 100% !important;
  box-sizing: border-box;
}

.footer-widgets-inner .row > div:last-child,
.footer-col:last-child,
.footer-col--about {
  border-right: none;
}

/* Колонка 1 */
#footer .footer__logo {
  display: inline-block;
  margin-bottom: var(--s-4);
  line-height: 1;
  max-width: var(--sz-footer-logo);
  text-decoration: none;
}

#footer .footer__logo-img,
#footer .footer__logo img {
  display: block;
  width: 100%;
  max-width: var(--sz-footer-logo-img) !important;
  height: auto !important;
  object-fit: contain;
}

#footer a.footer__phone {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--ff-body);
  font-size: var(--fs-h2);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--ink) !important;
  text-decoration: none !important;
  margin-bottom: var(--s-4);
  line-height: 1.2 !important;
  transition: color var(--dur-med) var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  #footer a.footer__phone:hover {
    color: var(--primary) !important;
  }
}

#footer .footer__contact-item {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  color: var(--ink);
  line-height: 1.4;
}

#footer .footer__contact-item:last-child {
  margin-bottom: 0;
}

#footer .footer__contact-item a {
  color: var(--ink) !important;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.4 !important;
  text-decoration: none !important;
  transition: color var(--dur-med) var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  #footer .footer__contact-item a:hover {
    color: var(--ink) !important;
  }
}

#footer .footer-col svg {
  stroke-width: 1;
  stroke: var(--ink-3);
  fill: none;
  width: var(--sz-icon-s);
  height: var(--sz-icon-s);
  display: inline-block;
  flex-shrink: 0;
}

#footer .footer__phone svg {
  stroke: var(--ink);
  width: var(--sz-icon);
  height: var(--sz-icon);
}

/* Заголовки колонок */
#footer .footer-title {
  font-family: var(--ff-body);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-4);
}

/* Блок рейтинга (виджет Яндекса) */
#footer .footer-rating-badge {
  border-bottom: var(--bw-hair) solid var(--line);
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-4);
}

#footer .footer-rating-badge iframe {
  border: none;
  max-width: 100%;
  display: block;
}

/* Ссылки колонок */
#footer .footer__link-item {
  margin-bottom: var(--s-3);
}

#footer .footer__link-item:last-child {
  margin-bottom: 0;
}

#footer .footer__link-item a {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.4 !important;
  color: var(--ink) !important;
  text-decoration: none !important;
  transition: color var(--dur-med) var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  #footer .footer__link-item a:hover {
    color: var(--ink) !important;
  }
}

/* Нижняя правовая строка */
.footer-widgets-copy {
  border-top: none;
  background: transparent;
  padding: 0;
  margin: 0;
  width: 100%;
}

.footer-widgets-copy .container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  box-sizing: border-box;
}

.footer-bottom-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: var(--s-4);
  padding: var(--s-6) 0;
  border-top: var(--bw-hair) solid var(--line);
  margin-top: var(--s-8);
}

.footer-legal {
  font-family: var(--ff-body);
  font-size: var(--fs-caption);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

#footer .footer-back-to-top .footer-scroll-top,
#footer .footer-scroll-top,
.footer-back-to-top .footer-scroll-top {
  font-family: var(--ff-body);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3) !important;
  text-decoration: none !important;
  transition: color var(--dur-med) var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .footer-back-to-top .footer-scroll-top:hover {
    color: var(--ink) !important;
  }
}

/* --- Responsive Scaling & Zoom Protection --- */
@media (max-width: 959px) {
  .footer-widgets-inner .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-col {
    border-right: var(--bw-hair) solid var(--line-2);
    border-bottom: var(--bw-hair) solid var(--line-2);
  }
  .footer-col:nth-child(2n) {
    border-right: none;
  }
  .footer-col:nth-last-child(-n+2) {
    border-bottom: none;
  }
  #site-header-inner {
    padding: 0 var(--gutter) !important;
  }
  #site-header-inner .row {
    gap: var(--s-2);
  }
  #site-header a.action__btn {
    padding: var(--s-3) var(--s-4);
    font-size: var(--fs-body);
  }
  .footer-widgets-inner.container,
  .footer-widgets-copy .container {
    padding: 0 var(--gutter);
  }
}

@media (max-width: 959px) {
  .footer-widgets-inner .row {
    grid-template-columns: 1fr;
  }
  .footer-col {
    border-right: none;
    border-bottom: var(--bw-hair) solid var(--line-2);
  }
  .footer-col:last-child {
    border-bottom: none;
  }
  .footer-bottom-row {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
}

/* --- Canonical Frame 16 Header Geometry & Spacing --- */
#site-header {
  position: sticky !important;
  top: 0;
  z-index: 1000 !important;
  background: var(--surface) !important;
  border-bottom: var(--bw-hair) solid var(--line-2);
  padding: 0;
  margin: 0;
}

#site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) !important;
}

#site-navigation-wrap {
  padding: 0;
  margin: 0;
}

#site-navigation-wrap > .row:first-child {
  padding: var(--s-4) 0 !important;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: none;
}

.header__logo {
  display: inline-flex !important;
  align-items: center;
  margin: 0;
  padding: 0;
}

.header__logo img,
.custom-logo-link img {
  max-height: var(--sz-logo-max-h) !important; /* sizes.logo-max-h: var(--sz-logo-max-h) */
  height: var(--sz-logo-max-h) !important;
  width: auto !important;
  display: block;
}

.header__contact {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end;
  gap: var(--s-4) !important; /* spacing.s4: 16px */
  margin: 0;
  padding: 0 !important;
}

@media (min-width: 960px) {
  .hide-pc,
  .header__contact.hide-pc,
  .close__menu.hide-pc,
  .oceanwp-mobile-menu-icon.hide-pc {
    display: none !important;
  }
}

.header__contact a[href^="tel:"] {
  font-family: var(--ff-body);
  font-size: var(--fs-body) !important;
  font-weight: 400 !important;
  color: var(--ink) !important;
  font-variant-numeric: tabular-nums;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  transition: color var(--dur-med) var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .header__contact a[href^="tel:"]:hover {
    color: var(--ink) !important;
  }
}

.header__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--sz-icon-btn);
  height: var(--sz-icon-btn);
  border: var(--bw-hair) solid var(--line-2);
  border-radius: 0;
  color: var(--ink-3);
  transition: all var(--dur-med) var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .header__social a:hover {
    color: var(--ink) !important;
    border-color: var(--ink) !important;
  }
}

.header__social a svg {
  width: var(--sz-icon-s) !important;
  height: var(--sz-icon-s);
}

.header__action {
  margin: 0;
  padding: 0;
}

.header__action .action__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-4) var(--s-5);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1;
  background: var(--primary) !important;
  color: var(--surface);
  border: none;
  border-radius: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-med) var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .header__action .action__btn:hover {
    background: var(--primary-hover) !important;
    color: var(--surface) !important;
  }
}

@media (min-width: 960px) {
  #site-navigation-wrap > .row:last-child {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    border-bottom: none;
  }
}
@media (max-width: 959px) {
  #site-navigation-wrap:not(.show-menu) > .row:last-child {
    display: none !important;
  }
}

/* --- Canonical Desktop Header Navigation --- */
@media (min-width: 960px) {
  #site-navigation {
    margin: 0;
    padding: 0;
    width: 100% !important;
  }

  #site-navigation .main-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-6); /* spacing.s6: 24px */
    list-style: none;
    margin: 0;
    padding: 0;
  }

  #site-navigation .main-menu > li {
    position: relative;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
  }

  #site-navigation .main-menu > li > a {
    padding: var(--s-3) 0;
    font-family: var(--ff-body);
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: 1.4;
    color: var(--ink) !important;
    border-bottom: var(--bw-mark) solid transparent;
    margin-bottom: calc(-1 * var(--bw-hair));
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: var(--s-1) !important;
    transition: color var(--dur-med) var(--ease);
  }

  #site-navigation .main-menu > li.current-menu-item > a {
    color: var(--ink);
    font-weight: 500;
    border-bottom: var(--bw-mark) solid var(--primary);
  }

  @media (hover: hover) and (pointer: fine) {
    #site-navigation .main-menu > li > a:hover {
      color: var(--ink) !important;
    }
  }

  #site-navigation .main-menu .nav-arrow {
    font-size: var(--fs-micro);
    color: var(--ink-3);
    margin-left: var(--s-1);
    display: inline-block;
    transition: transform var(--dur-med) var(--ease);
  }

  #site-navigation .main-menu > li:hover .nav-arrow {
    transform: rotate(180deg) !important;
  }

  #site-navigation .main-menu .menu-item-has-children > a::after,
  #site-navigation-wrap .menu-item-has-children > a::after {
    display: none;
    content: none;
  }

  #site-navigation .main-menu ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: var(--sz-menu-min);
    background: var(--surface) !important;
    border: var(--bw-hair) solid var(--line-2);
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 1000;
  }

  #site-navigation .main-menu ul.sub-menu li {
    margin: 0;
    padding: 0;
    border-bottom: var(--bw-hair) solid var(--line);
  }

  #site-navigation .main-menu ul.sub-menu li:last-child {
    border-bottom: none;
  }

  #site-navigation .main-menu ul.sub-menu li a {
    display: block;
    padding: var(--s-4) var(--s-5);
    font-family: var(--ff-body);
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: 1.4;
    color: var(--ink) !important;
    text-decoration: none !important;
    border-bottom: none !important;
    background: transparent;
    transition: background var(--dur-med) var(--ease), color var(--dur-med) var(--ease);
  }

  @media (hover: hover) and (pointer: fine) {
    #site-navigation .main-menu ul.sub-menu li a:hover {
      background: var(--accent-soft) !important;
      color: var(--ink) !important;
    }
  }
}

@media (max-width: 959px) {
  .footer-widgets-inner .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 959px) {
  .footer-widgets-inner .row {
    grid-template-columns: 1fr;
  }
  .footer-widgets-inner.container,
  #site-header-inner {
    padding: 0 var(--gutter) !important;
  }
}

/* --- Product Detail Page (DCLogic Canon) --- */
.prod-hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}

@media (max-width: 959px) {
  .prod-hero-layout {
    grid-template-columns: 1fr;
  }
}

.prod-hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--surface);
  border: var(--bw-hair) solid var(--line-2);
}

.prod-hero-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.prod-hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding-top: 0;
  border-top: none;
  width: 100%;
}

.prod-hero-cta .goods__price {
  font-size: var(--fs-body);
  margin: 0 auto;
  text-align: center;
  color: var(--ink-3);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--s-2);
  white-space: nowrap;
}

.prod-hero-cta .goods__price .price-val {
  /* Отдельного display-кегля нет (design.md): цена в hero — тот же `num`. */
  font-size: var(--fs-h2);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}

.prod-hero-cta .goods__price .price-suffix {
  /* Единица при цене — `.caption`. */
  font-size: var(--fs-caption);
  color: var(--ink-3);
  font-weight: 400;
}

.prod-hero-cta .goods__button {
  margin: 0 auto !important;
  border-top: none;
  padding: 0;
  text-align: center;
}

.prod-hero-cta .goods__button .btn,
.prod-hero-cta .goods__button .goods__addCart {
  /* .btn: padding 16px 24px (components.btn). */
  padding: var(--s-4) var(--s-6) !important;
  font-size: var(--fs-body);
  font-weight: 500;
  width: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.related-prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--sz-card-min), 1fr));
  gap: var(--s-6);
  align-items: stretch;
}

.related-prod-grid[data-count="2"] {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-8);
}

.related-prod-grid[data-count="3"] {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}

.related-prod-grid[data-count="4"] {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}

@media (max-width: 959px) {
  .related-prod-grid,
  .related-prod-grid[data-count="2"],
  .related-prod-grid[data-count="3"],
  .related-prod-grid[data-count="4"] {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
}

.related-prod-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.related-prod-note {
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: var(--s-4);
  min-height: var(--sz-control-h);
}

/* Data Table (DCLogic Canon) */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-4) 0;
  font-size: var(--fs-body);
}

.data-table th,
.data-table td {
  padding: var(--s-3) var(--s-4);
  border-bottom: var(--bw-hair) solid var(--line-2);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  font-weight: 500;
  color: var(--ink-2);
  width: 32%;
  background: var(--surface);
}

.data-table td {
  color: var(--ink);
}

@media (max-width: 959px) {
  .data-table th,
  .data-table td {
    padding: var(--s-2) var(--s-3);
    font-size: var(--fs-body);
  }
  .data-table th {
    width: 40%;
  }
}

/* Photo Gallery Grid */
.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}

@media (max-width: 959px) {
  .photo-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 959px) {
  .photo-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.photo-gallery-item {
  border: var(--bw-hair) solid var(--line-2);
  background: var(--surface);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.photo-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface);
  display: block;
  transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .photo-gallery-item img:hover {
    transform: scale(1.03);
  }
}

/* Галерея секций (slider_gallery). Отрисовщик ставил .rc-gallery-grid,
   стилей у класса не было ни в одной таблице: сетка раскладывалась
   display:block, и карточки вставали столбиком (находка 163). Раскладка
   повторяет .photo-gallery-grid — те же токены отступов и рамок. */
.rc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.rc-gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 959px) {
  .rc-gallery-grid,
  .rc-gallery-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 959px) {
  .rc-gallery-grid,
  .rc-gallery-grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

.rc-gallery-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: var(--bw-hair) solid var(--line-2);
  overflow: hidden;
}

.rc-gallery-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface);
}

.rc-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface);
  display: block;
}

/* ============================================================
   FLOATING SCROLL-TOP BUTTON (§ sizes.touch: 44px)
   ============================================================ */
#scroll-top {
  position: fixed;
  right: var(--s-6);
  bottom: var(--s-6);
  width: var(--sz-touch);
  height: var(--sz-touch);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--ink);
  border: var(--bw-hair) solid var(--line-2);
  border-radius: 0;
  cursor: pointer;
  z-index: 900;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease), visibility var(--dur-med) var(--ease), background var(--dur-med) var(--ease), color var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}

#scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#scroll-top:focus-visible {
  background: var(--primary);
  color: var(--surface);
  border-color: var(--primary);
  outline: none;
}
@media (hover: hover) and (pointer: fine) {
  #scroll-top:hover {
    background: var(--primary);
    color: var(--surface);
    border-color: var(--primary);
    outline: none;
  }
}

@media (max-width: 959px) {
  #scroll-top {
    right: var(--s-4);
    bottom: var(--s-4);
  }
}

/* ============================================================
   Лестница 360 / 960 / 1280 (WORKLOG 239, решение владельца 28.09)
   Точка перелома одна — 960: уже неё мобильная вёрстка (эталон 360),
   шире — десктоп (эталон 1280). Других @media по ширине в стилях нет —
   это держит check-viewports.
   ============================================================ */

/* Длина строки текста — до --measure (≈90 знаков): сплошной абзац во всю
   ширину 1216 px читать трудно. Сетки, таблицы и формы — во всю ширину. */
.article-content > p,
.article-content > ul,
.article-content > ol,
.article-content > blockquote,
.sec > .wrap > p,
.sec-lede {
  max-width: var(--measure);
}

.layout .sec-lede {
  max-width: none;
  margin-bottom: var(--s-4);
}

/* Верх мобильной вёрстки (планшет до 959 px): колонка не растягивается на
   всю ширину, а стоит по центру. Шапка и подвал — во всю ширину. */
@media (max-width: 959px) {
  .wrap,
.sec > .wrap,
.wrap-narrow,
.rc-article > :not(.sec):not(.hero-sec):not(.wp-block-group.sec):not(.rc-anchor-target) {
    max-width: var(--max-mobile);
  }
}

/* ============================================================
   Первый экран раздела (секция `intro`, WORKLOG 243)
   Каркасы design.md: .layout[data-cols="side"], .sec-lede, .hl--spec,
   .action-row, .media 1:1 contain. Своих кеглей и цветов нет.
   ============================================================ */

/* tokens: spacing.s6 — ритм h1 → лид → параметры → кнопки */
.intro-main {
  display: grid;
  gap: var(--s-6);
  align-content: start;
}

.intro-main > h1,
.intro-main > .sec-lede {
  margin: 0;
}

/* tokens: layout — фото и текст выровнены по верхнему краю */
.intro-sec > .wrap > .layout[data-cols="side"] {
  align-items: start;
}

/* .num — design.md «Текстовые роли»: крупное число (цена, спека).
   tokens: typography.num (22px / 400 / tabular-nums), colors.ink */
.num {
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* tokens: spacing.s2 — значение под меткой; число не переносится (design.md § Задачи),
   единица (.caption) переносится на следующую строку при нехватке ширины */
.intro-spec-v {
  margin-top: var(--s-2);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--s-1);
}

.intro-spec-v .num {
  white-space: nowrap;
}

.intro-spec-v .caption {
  white-space: normal;
}

/* .media — design.md каркас 12: 1:1, товарное фото contain на surface */
.media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--surface);
}

/* tokens: spacing.s10, borders.hair, colors.line — вводная проза отбита
   линией внутри той же секции (design.md: два блока в секции — линия) */
.intro-prose {
  margin-top: var(--s-10);
  padding-top: var(--s-10);
  border-top: var(--bw-hair) solid var(--line);
}

/* Описание модели внутри карточки каталога (колонка «текст + [goods_link]»,
   WORKLOG 243). tokens: spacing.s3, spacing.s4, colors.ink-2 — параметры
   между названием и ценой; растягиваются, чтобы цена и кнопка соседних
   карточек стояли на одной линии. */
.goods__desc {
  flex: 1 1 auto;
  margin-top: var(--s-3);
  margin-bottom: var(--s-4);
  color: var(--ink-2);
  text-align: left;
}

.goods__desc > :last-child {
  margin-bottom: 0;
}

.layout > div:has(> .goods-single-card-wrap:only-child) > .goods-single-card-wrap {
  flex: 1 1 auto;
}

/* Карточка с описанием читается сверху вниз от левого края: название и цена
   встают по левому борту вместе с параметрами. */
.goods__card:has(> .goods__desc) .goods__title,
.goods__card:has(> .goods__desc) .goods__title a,
.goods__card:has(> .goods__desc) .goods__price {
  text-align: left;
  justify-content: flex-start;
}

/* ============================================================
   Шаги процесса `.proc` — design.md каркас 5 (WORKLOG 243)
   tokens: spacing.s7 (padding-top шага), sizes.dot-step 12px,
   borders.hair, colors.line-2 / surface / primary, spacing.s8 / s5 (gap)
   ============================================================ */
.proc {
  display: grid;
  list-style: none;
  margin-left: 0;
  padding: 0;
}
.proc[data-col="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-8); }
.proc[data-col="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-5); }
.proc[data-col="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8); }
.proc[data-col="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8); }

.proc-step {
  position: relative;
  padding-top: var(--s-7);
  margin: 0;
}
.proc-step > p { margin-bottom: 0; }

/* Линия через центр маркера, до следующего шага; у последнего скрыта. */
.proc-line {
  position: absolute;
  top: var(--s-2);
  left: 0;
  right: 0;
  height: var(--bw-hair);
  background: var(--line-2);
}
.proc-step:last-child .proc-line { display: none; }

.proc-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--sz-dot-step);
  height: var(--sz-dot-step);
  box-sizing: border-box;
  border: var(--bw-hair) solid var(--line-2);
  background: var(--surface);
}

/* Мобильная вёрстка (лестница 360/960): шаги столбцом, линия вертикальная. */
@media (max-width: 959px) {
  .proc[data-col] { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .proc-step { padding-top: 0; padding-left: var(--s-7); padding-bottom: var(--s-6); }
  .proc-line { top: var(--s-3); bottom: 0; left: var(--s-2); right: auto; width: var(--bw-hair); height: auto; }
}

/* ============================================================
   Таблица секции — каркас 4 `.cmp` (design.md), WORKLOG 244.
   Разметка остаётся как в выгрузке (голый <table> в .table-wrap), вид
   каркаса задаётся здесь; таблицы ТТХ товаров (.data-table) не трогаются.
   tokens: sizes.table-min 800px, sizes.subject-col 180px, spacing.s8/s6/s5/s4/s3,
   borders.hair, colors.accent-soft / line / ink / ink-2 / ink-3,
   typography.micro (12px / 500 / .08em / uppercase), typography.body
   ============================================================ */
.article-content .table-wrap:has(> table:not(.data-table)) {
  overflow-x: auto;
  scrollbar-width: thin;
  margin-top: var(--s-8);
}
.article-content .table-wrap > table:not(.data-table) {
  width: 100%;
  min-width: var(--sz-table-min);
  border-collapse: collapse;
}
.article-content .table-wrap > table:not(.data-table) th {
  padding: var(--s-5) var(--s-6);
  background: var(--accent-soft);
  color: var(--ink-3);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: var(--bw-hair) solid var(--line);
}
.article-content .table-wrap > table:not(.data-table) td {
  padding: var(--s-4) var(--s-6);
  color: var(--ink-2);
  vertical-align: top;
  text-align: left;
  border-bottom: var(--bw-hair) solid var(--line);
}
.article-content .table-wrap > table:not(.data-table) td:first-child {
  width: var(--sz-subject-col);
  color: var(--ink);
  font-weight: 500;
}
/* .cmp-note — подпись под таблицей: абзац сразу после неё. */
.article-content .table-wrap:has(> table:not(.data-table)) + p {
  margin-top: var(--s-3);
  font-size: var(--fs-caption);
  line-height: 1.4;
  color: var(--ink-3);
}
/* Таблица «параметр → значение» (два столбца): оси сравнения нет, это пары
   метка/значение — растягивать на весь контейнер незачем. Ширина — длина
   строки текста (layout.measure), столбцы пополам. */
.article-content .table-wrap > table:not(.data-table):has(tr > :nth-child(2):last-child) {
  min-width: 0;
  max-width: var(--measure);
}
.article-content .table-wrap > table:not(.data-table):has(tr > :nth-child(2):last-child) td:first-child {
  width: 50%;
}

/* R66: отклик на нажатие — кнопка, вкладка, переключатель чуть «вдавливается».
   У стрелки слайдера свой transform — её правило в components.css. */
.btn:active,
.btn-ghost:active,
.btn-sm:active,
button[type="submit"]:active,
.header__action .action__btn:active,
.rubric-seg__item:active,
.seg button:active,
.ind-li:active,
.ind-accordion-trigger:active,
#scroll-top:active,
.oceanwp-mobile-menu-icon button:active,
.scroller-dots .dot:active,
.header__contact .popup__minicart:active,
.header__social a:active,
.close__menu.hide-pc:active,
.popup__close:active,
.hero4a__btn:active {
  transform: scale(0.97);
}

/* R66: переход к якорю — прокруткой, а не скачком (раньше — безусловно, в
   правиле html выше); кто отключил анимацию в системе, получает скачок. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
