.rt-automation {
  --rt-green: #78be20;
  --rt-green-dark: #4d8610;
  --rt-ink: #18211d;
  --rt-muted: #66706a;
  --rt-line: #dfe5e1;
  --rt-soft: #f4f7f5;
  --rt-white: #ffffff;
  box-sizing: border-box;
  width: min(100%, 1240px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 24px 80px;
  color: var(--rt-ink);
  background: var(--rt-white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

.rt-automation *,
.rt-automation *::before,
.rt-automation *::after {
  box-sizing: inherit;
}

.rt-automation h1,
.rt-automation h2,
.rt-automation p,
.rt-automation figure,
.rt-automation ul {
  margin-top: 0;
}

.rt-automation h1 {
  max-width: 860px;
  margin-bottom: 20px;
  color: var(--rt-ink);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.rt-automation h2 {
  color: var(--rt-ink);
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.rt-automation a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.rt-automation a:focus-visible,
.rt-automation button:focus-visible {
  outline: 3px solid #1f67d2;
  outline-offset: 3px;
}

.rt-automation img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.rt-automation [hidden] {
  display: none !important;
}

.rt-automation__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 28px;
  color: var(--rt-muted);
  font-size: 13px;
}

.rt-automation__crumb[aria-current="page"] {
  color: var(--rt-ink);
  font-weight: 700;
}

.rt-automation__hero,
.rt-automation__product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: center;
  min-height: 500px;
  margin-bottom: 72px;
  padding: clamp(32px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid var(--rt-line);
  border-radius: 28px;
  background: linear-gradient(135deg, #f8faf8 0%, #edf5ec 100%);
}

.rt-automation__hero--compact {
  min-height: 420px;
}

.rt-automation__hero-copy,
.rt-automation__product-copy {
  min-width: 0;
}

.rt-automation__hero-media,
.rt-automation__product-image {
  display: grid;
  min-width: 0;
  min-height: 320px;
  margin: 0;
  place-items: center;
}

.rt-automation__hero-media img {
  width: 100%;
  max-height: 420px;
}

.rt-automation__product-image img {
  width: min(100%, 360px);
  max-height: 500px;
}

.rt-automation__eyebrow {
  margin-bottom: 10px;
  color: var(--rt-green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.rt-automation__lead {
  max-width: 760px;
  margin-bottom: 28px;
  color: #39433e;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.48;
}

.rt-automation__button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--rt-green-dark);
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.rt-automation__button {
  color: #14210f;
  background: var(--rt-green);
}

.rt-automation__text-link {
  color: var(--rt-green-dark);
  font-weight: 750;
}

.rt-automation__section {
  margin: 0 0 80px;
}

.rt-automation__section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.rt-automation__section-heading h2 {
  margin-bottom: 10px;
}

.rt-automation__family-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.rt-automation__io-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.rt-automation__model-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.rt-automation .rt-panel {
  min-width: 0;
  border: 1px solid var(--rt-line);
  border-radius: 18px;
  background: var(--rt-white);
  box-shadow: 0 12px 36px rgb(20 45 28 / 7%);
}

.rt-automation__family-card {
  padding: clamp(24px, 4vw, 38px);
}

.rt-automation__io-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  overflow: hidden;
}

.rt-automation__io-image {
  display: grid;
  min-height: 300px;
  margin: 0;
  padding: 28px;
  border-right: 1px solid var(--rt-line);
  place-items: center;
  background: linear-gradient(180deg, #f7faf8 0%, #ffffff 100%);
}

.rt-automation__io-image img {
  width: 100%;
  height: 280px;
}

.rt-automation__io-content {
  min-width: 0;
  padding: clamp(26px, 4vw, 42px);
}

.rt-automation__io-header {
  max-width: 760px;
}

.rt-automation__io-header p {
  margin-bottom: 0;
  color: var(--rt-muted);
}

.rt-automation__io-header .rt-automation__io-code-note {
  margin-top: 16px;
  padding: 10px 12px;
  border-left: 3px solid var(--rt-green);
  color: #39433e;
  background: var(--rt-soft);
  font-size: 13px;
}

.rt-automation__io-model-list {
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--rt-line);
}

.rt-automation__io-model-row {
  display: grid;
  grid-template-columns: minmax(112px, 150px) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--rt-line);
}

.rt-automation__io-model-row dt {
  color: var(--rt-green-dark);
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.rt-automation__io-model-row dd {
  margin: 0;
  color: #39433e;
}

.rt-automation__family-card--next {
  color: var(--rt-muted);
  background: var(--rt-soft);
  box-shadow: none;
}

.rt-automation__family-card h2,
.rt-automation__io-card h2 {
  margin: 0 0 12px;
  font-size: clamp(21px, 2.2vw, 28px);
}

.rt-automation__status {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rt-automation__status--ready {
  color: #274d08;
  background: #def2c8;
}

.rt-automation__status--next {
  color: #5b625e;
  background: #e4e8e5;
}

.rt-automation__quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -42px 0 72px;
}

.rt-automation__quick-nav a {
  padding: 10px 14px;
  border: 1px solid var(--rt-line);
  border-radius: 999px;
  color: var(--rt-green-dark);
  font-weight: 750;
  text-decoration: none;
}

.rt-automation__software {
  margin: 0 0 80px;
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
  background: linear-gradient(135deg, #fbfcfb 0%, #f3f8f1 100%);
}

.rt-automation__software-head {
  max-width: 900px;
}

.rt-automation__software h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.2vw, 40px);
}

.rt-automation__software-head > p:last-child {
  max-width: 820px;
  margin-bottom: 0;
  color: #48524d;
}

.rt-automation__software-sections {
  display: grid;
  margin-top: 28px;
  border-top: 1px solid #d6e0d2;
}

.rt-automation__software-section {
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1.58fr);
  gap: 30px;
  align-items: start;
  min-width: 0;
  padding: 20px 0;
  border-bottom: 1px solid #d6e0d2;
}

.rt-automation__software-section > div {
  min-width: 0;
}

.rt-automation__software-section h3 {
  margin: 0 0 12px;
  color: var(--rt-ink);
  font-size: 19px;
  line-height: 1.3;
}

.rt-automation__software-section p:last-child {
  margin-bottom: 0;
}

.rt-automation__software-label {
  margin-bottom: 6px;
  color: var(--rt-green-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rt-automation__code-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rt-automation__code-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0;
  padding: 5px 9px;
  border-radius: 6px;
  color: #28491a;
  background: #e8f2e2;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
}

.rt-automation__code-tag::before {
  content: none !important;
  display: none !important;
}

.rt-automation__software-features {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rt-automation__software-features li {
  position: relative;
  padding-left: 16px;
}

.rt-automation__software-features li::before {
  position: absolute;
  top: 0.67em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rt-green);
  content: "" !important;
}

.rt-automation__software-links {
  display: grid;
  margin-top: 24px;
  border-top: 1px solid #d6e0d2;
}

.rt-automation__software-link {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  min-width: 0;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #d6e0d2;
  color: #213c16;
  text-decoration-color: #8bad78;
}

.rt-automation__software-link > span:last-child,
.rt-automation__software-link strong,
.rt-automation__software-link small {
  display: block;
}

.rt-automation__software-link small {
  margin-top: 2px;
  color: var(--rt-muted);
  font-size: 11px;
  line-height: 1.35;
}

.rt-automation__file-type {
  display: inline-flex;
  min-width: 40px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #315b1d;
  background: #e2efda;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.rt-automation__software-note {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-left: 3px solid #b8cea9;
  color: var(--rt-muted);
  background: rgb(255 255 255 / 55%);
  font-size: 13px;
}

.rt-automation__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.rt-automation__filters button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--rt-line);
  border-radius: 9px;
  color: var(--rt-ink);
  background: var(--rt-white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.rt-automation__filters button[aria-pressed="true"] {
  border-color: var(--rt-green-dark);
  color: var(--rt-white);
  background: var(--rt-green-dark);
}

.rt-automation__live {
  min-height: 24px;
  margin-bottom: 20px;
  color: var(--rt-muted);
  font-size: 14px;
}

.rt-automation__model-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1.38fr);
  overflow: hidden;
}

.rt-automation__model-image {
  display: grid;
  min-height: 300px;
  padding: 28px;
  border-right: 1px solid var(--rt-line);
  place-items: center;
  background: linear-gradient(180deg, #f7faf8 0%, #ffffff 100%);
}

.rt-automation__model-image img {
  width: min(100%, 240px);
  height: 270px;
}

.rt-automation__model-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(28px, 4vw, 42px);
}

.rt-automation__card-title {
  margin-bottom: 12px;
  font-size: 29px;
}

.rt-automation__card-title a {
  text-decoration: none;
}

.rt-automation__model-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 24px 0;
  padding: 0;
  border-top: 1px solid var(--rt-line);
  border-bottom: 1px solid var(--rt-line);
}

.rt-automation__model-fact {
  min-width: 0;
  padding: 16px;
}

.rt-automation__model-fact + .rt-automation__model-fact {
  border-left: 1px solid var(--rt-line);
}

.rt-automation__model-fact dt {
  color: var(--rt-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.rt-automation__model-fact dd {
  margin: 6px 0 0;
  color: var(--rt-ink);
  font-size: 16px;
  font-weight: 750;
}

.rt-automation__card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
}

.rt-automation__card-actions .rt-automation__button {
  min-width: 190px;
}

.rt-automation__feature-list {
  margin-bottom: 0;
  padding-left: 20px;
}

.rt-automation__feature-list li {
  margin: 6px 0;
}

.rt-automation__table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--rt-line);
  border-radius: 14px;
}

.rt-automation__table-wrap table {
  width: 100%;
  border-collapse: collapse;
  color: var(--rt-ink);
  background: var(--rt-white);
}

.rt-automation__table-wrap caption {
  padding: 18px;
  color: var(--rt-ink);
  font-size: 18px;
  font-weight: 800;
  text-align: left;
}

.rt-automation__table-wrap th,
.rt-automation__table-wrap td {
  min-width: 140px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--rt-line);
  text-align: left;
  vertical-align: top;
}

.rt-automation__table-wrap thead th {
  color: #344039;
  background: var(--rt-soft);
  font-size: 13px;
}

.rt-automation__table-wrap tbody th {
  font-weight: 750;
}

.rt-automation__comparison {
  min-width: 860px;
}

.rt-automation__comparison-mobile {
  display: none;
}

.rt-automation__comparison-card {
  padding: 20px;
  border: 1px solid var(--rt-line);
  border-radius: 14px;
  background: var(--rt-white);
}

.rt-automation__comparison-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.rt-automation__comparison-card dl {
  margin: 0;
}

.rt-automation__comparison-fact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--rt-line);
}

.rt-automation__comparison-fact dt {
  color: var(--rt-muted);
}

.rt-automation__comparison-fact dd {
  margin: 0;
  font-weight: 750;
  text-align: right;
}

.rt-automation__specs {
  display: grid;
  gap: 48px;
  margin-bottom: 72px;
}

.rt-automation__spec-group h2 {
  margin-bottom: 20px;
}

.rt-automation__variants {
  margin-bottom: 24px;
}

.rt-automation__diagram-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 44px;
}

.rt-automation__diagram {
  min-width: 0;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--rt-line);
  border-radius: 16px;
  background: var(--rt-white);
}

.rt-automation__diagram img {
  width: 100%;
  height: 360px;
}

.rt-automation__diagram figcaption {
  margin-top: 15px;
  color: var(--rt-muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 960px) {
  .rt-automation__hero,
  .rt-automation__product-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .rt-automation__hero-media,
  .rt-automation__product-image {
    min-height: 260px;
  }

  .rt-automation__hero-media img,
  .rt-automation__product-image img {
    max-height: 340px;
  }

  .rt-automation__model-card {
    grid-template-columns: minmax(210px, 0.5fr) minmax(0, 1.5fr);
  }

  .rt-automation__model-image {
    min-height: 270px;
    padding: 22px;
  }

  .rt-automation__model-image img {
    height: 240px;
  }

  .rt-automation__io-card {
    grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  }

  .rt-automation__io-image {
    min-height: 260px;
    padding: 20px;
  }

  .rt-automation__io-image img {
    height: 240px;
  }

  .rt-automation__software-section {
    grid-template-columns: minmax(170px, 0.36fr) minmax(0, 1.64fr);
  }
}

@media (max-width: 720px) {
  .rt-automation {
    padding: 16px 14px 56px;
  }

  .rt-automation__breadcrumbs {
    margin-bottom: 18px;
  }

  .rt-automation__hero,
  .rt-automation__product-hero {
    gap: 20px;
    margin-bottom: 48px;
    padding: 26px 20px;
    border-radius: 18px;
  }

  .rt-automation__hero-media,
  .rt-automation__product-image {
    min-height: 220px;
  }

  .rt-automation__family-grid,
  .rt-automation__io-grid,
  .rt-automation__model-grid,
  .rt-automation__diagram-grid {
    grid-template-columns: 1fr;
  }

  .rt-automation__section {
    margin-bottom: 56px;
  }

  .rt-automation__io-card {
    grid-template-columns: 1fr;
  }

  .rt-automation__io-image {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--rt-line);
  }

  .rt-automation__io-image img {
    width: min(100%, 320px);
    height: 220px;
  }

  .rt-automation__io-content {
    padding: 24px 20px;
  }

  .rt-automation__io-model-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .rt-automation__software {
    margin-bottom: 56px;
  }

  .rt-automation__software-links {
    align-items: flex-start;
  }

  .rt-automation__software-link {
    width: 100%;
  }

  .rt-automation__software-section {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .rt-automation__quick-nav {
    margin: -26px 0 48px;
  }

  .rt-automation__model-image {
    min-height: 230px;
    border-right: 0;
    border-bottom: 1px solid var(--rt-line);
  }

  .rt-automation__model-image img {
    height: 210px;
  }

  .rt-automation__model-content {
    padding: 24px 20px;
  }

  .rt-automation__model-card {
    grid-template-columns: 1fr;
  }

  .rt-automation__model-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rt-automation__model-fact:nth-child(3) {
    border-left: 0;
  }

  .rt-automation__model-fact:nth-child(n + 3) {
    border-top: 1px solid var(--rt-line);
  }

  .rt-automation__card-actions .rt-automation__button {
    width: 100%;
    min-width: 0;
  }

  .rt-automation__comparison-desktop {
    display: none;
  }

  .rt-automation__comparison-mobile {
    display: grid;
    gap: 12px;
  }

  .rt-automation__diagram img {
    height: auto;
    min-height: 240px;
  }

  .rt-automation__spec-group .rt-automation__table-wrap {
    overflow: visible;
    border: 0;
  }

  .rt-automation__spec-group table,
  .rt-automation__spec-group tbody,
  .rt-automation__spec-group tr,
  .rt-automation__spec-group th,
  .rt-automation__spec-group td {
    display: block;
    width: 100%;
  }

  .rt-automation__spec-group thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .rt-automation__spec-group tr {
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid var(--rt-line);
    border-radius: 12px;
    background: var(--rt-white);
  }

  .rt-automation__spec-group th,
  .rt-automation__spec-group td {
    min-width: 0;
    padding: 4px 0;
    border: 0;
  }

  .rt-automation__spec-group td:first-of-type::before {
    content: "Значение: ";
    color: var(--rt-muted);
    font-size: 12px;
    font-weight: 700;
  }

}

@media (max-width: 390px) {
  .rt-automation h1 {
    font-size: 34px;
  }

  .rt-automation__filters button,
  .rt-automation__quick-nav a {
    width: 100%;
  }

  .rt-automation__card-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rt-automation *,
  .rt-automation *::before,
  .rt-automation *::after {
    scroll-behavior: auto !important;
  }
}

.rt-automation__quote-price { margin: 12px 0 0; font-weight: 750; color: #245b17; }
.rt-automation__quote-price small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; font-weight: 400; color: #48544a; }
