/* Hallmark · targeted Railfast repair · nav: original header · footer: original dark footer · hero: stage · posture: restrained · surface: absolute */
/* critique: legacy Bootstrap stays unchanged; all refinements are isolated in this file */
/* Hallmark · waive 24b · existing header and card spacing must remain aligned · retain legacy spacing values in this refinement layer */
/* Hallmark · answered F7 · related form controls intentionally share one recipe for consistent input geometry */
:root {
  --zrsp-accent: #eb010c;
  --zrsp-text: #353535;
  --zrsp-muted: #7b8085;
  --zrsp-surface: #fcfcfd;
  --zrsp-border: #ddd;
  --zrsp-backdrop: #202124b3;
}
html,
body {
  overflow-x: clip;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--zrsp-accent);
  outline-offset: 3px;
}
a:active,
button:active {
  outline: 2px solid var(--zrsp-accent);
  outline-offset: 3px;
}
.chelyabinskii-zavod {
  background: url("../images/slide.jpg") no-repeat;
  background-size: cover;
}
.logo img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
}
.page-header,
.product-description h2,
.service-teaser h2 {
  text-wrap: balance;
}
.home-gallery,
.home-about,
.home-news {
  padding: 35px 0;
}
.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.home-gallery-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.home-about-body {
  max-width: 900px;
}
.home-news h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.home-news-all {
  font-size: 16px;
  font-weight: 400;
}
.home-news-item {
  margin: 25px 0;
}
.home-news-item time {
  color: var(--zrsp-muted);
}
.footer-legal {
  clear: both;
  padding: 20px 0;
  font-size: 13px;
}
.footer-operator {
  clear: both;
  padding-top: 20px;
  color: var(--zrsp-surface);
  font-size: 13px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 30px 0;
}
.catalog-card {
  display: flex;
  flex-direction: column;
  background: var(--zrsp-surface);
  color: var(--zrsp-text);
  font-weight: 700;
  border-radius: 2px;
  overflow: hidden;
}
.catalog-card:hover,
.catalog-card:focus {
  color: var(--zrsp-accent);
}
.catalog-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
}
.catalog-card span {
  padding: 15px 20px;
}
.service-teaser {
  padding: 25px 0;
  border-bottom: 1px solid var(--zrsp-border);
  overflow: hidden;
}
.service-teaser-image {
  float: left;
  width: 180px;
  margin: 0 25px 20px 0;
}
.service-teaser-image img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
}
.service-teaser h2 {
  margin-top: 0;
}
.category-term-header {
  overflow: hidden;
  margin-bottom: 25px;
}
.category-term-image {
  float: left;
  max-width: 180px;
  max-height: 180px;
  margin: 0 25px 20px 0;
}
.webform-submission-form {
  max-width: 720px;
}
.webform-submission-form .form-item {
  margin-bottom: 20px;
}
.webform-submission-form .form-control,
.webform-submission-form input[type="text"],
.webform-submission-form input[type="tel"],
.webform-submission-form input[type="email"],
.webform-submission-form textarea {
  display: block;
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--zrsp-border);
  border-radius: 2px;
  background: var(--zrsp-surface);
}
.webform-submission-form .form-submit {
  padding: 12px 25px;
  border: 1px solid var(--zrsp-accent);
  border-radius: 2px;
  background: var(--zrsp-accent);
  color: var(--zrsp-surface);
  font-weight: 700;
}
.webform-submission-form .form-submit:hover,
.webform-submission-form .form-submit:focus {
  background: var(--zrsp-surface);
  color: var(--zrsp-accent);
}
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 40px;
}
.product-main-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  background: var(--zrsp-surface);
}
.product-main-image img {
  display: block;
  width: 100%;
  max-width: 620px;
  max-height: 440px;
  object-fit: contain;
}
.product-summary {
  max-width: 480px;
}
.product-benefits {
  margin: 0 0 25px;
  padding: 0;
  list-style: none;
}
.product-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 18px;
}
.product-benefits svg,
.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -4px;
}
.product-benefits svg {
  color: var(--zrsp-accent);
}
.product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 15px;
  margin: 25px 0;
}
.product-price strong {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}
.product-order {
  display: block;
  padding: 18px 25px;
  background: var(--zrsp-accent);
  color: var(--zrsp-surface);
  font-weight: 700;
  text-align: center;
  border: 1px solid var(--zrsp-accent);
  border-radius: 2px;
}
.product-order:hover,
.product-order:focus {
  background: var(--zrsp-surface);
  color: var(--zrsp-accent);
}
.product-description h2 {
  font-size: 30px;
  overflow-wrap: break-word;
}
.product-description .field__label,
.product-description > div > div:first-child {
  display: none;
}
.product-price-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  margin-top: 25px;
  padding: 20px;
  background: var(--zrsp-surface);
  border: 1px solid var(--zrsp-border);
}
.product-price-note p {
  margin: 0;
}
.product-price-note a {
  color: var(--zrsp-accent);
  font-weight: 700;
}
.page-wrapper .field--name-body img,
.home-about-body img,
.category-term-description img {
  display: block;
  max-width: 720px;
  max-height: 480px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 20px auto;
}
.webform-submission-form .js-form-type-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.webform-submission-form .js-form-type-checkbox input {
  flex: 0 0 auto;
  margin-top: 4px;
}
.webform-submission-form .js-form-type-checkbox label {
  flex: 1;
  min-width: 0;
}
@media (max-width: 992px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }
  .product-main-image {
    min-height: 0;
  }
  .product-summary {
    max-width: none;
  }
}
@media (max-width: 768px) {
  .home-gallery-grid {
    grid-template-columns: 1fr;
  }
  .home-gallery-grid img {
    height: auto;
  }
}
@media (max-width: 600px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .service-teaser-image,
  .category-term-image {
    float: none;
    display: block;
    margin: 0 0 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
:root {
  --zrsp-dark: #303234;
  --zrsp-dark-muted: #c7c9cc;
  --zrsp-dark-border: #505255;
  --zrsp-subtle: #f7f7f8;
  --zrsp-shadow: 0 12px 32px #35353514;
}
#navbar > .container,
.navbar-default .container,
.footer.container {
  width: min(100% - 32px, 1200px);
  max-width: 1200px;
  padding: 0;
}
#navbar > .container > .navbar-header {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  float: none;
  width: 100%;
  padding: 24px 0;
}
#navbar .logo-wrapper,
#navbar .region-navigation-wrapper {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}
#navbar .logo {
  display: block;
  float: none;
  margin: 0;
  padding: 0;
}
#navbar .logo img {
  max-width: 360px;
}
#navbar .region-navigation-wrapper #block-railfast-header-contacts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
}
#navbar .region-navigation-wrapper .col-sm-12,
#navbar .region-navigation-wrapper .col-md-4 {
  float: none;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
}
#navbar .topemail,
#navbar .topphone > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
#navbar .topemail strong,
#navbar .topphone strong {
  display: inline-flex;
  align-items: center;
}
#navbar .topemail a {
  color: var(--zrsp-text);
  overflow-wrap: anywhere;
}
#navbar .topemail__sub {
  margin: 6px 0 0;
  color: var(--zrsp-muted);
  font-size: 13px;
  line-height: 1.4;
}
#navbar .topphone a {
  color: var(--zrsp-text);
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}
#navbar .buttonheader .btn,
.footer .buttonheader .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--zrsp-accent);
  border-radius: 4px;
  background: var(--zrsp-surface);
  color: var(--zrsp-accent);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
}
#navbar .buttonheader .btn:hover,
.footer .buttonheader .btn:hover {
  background: var(--zrsp-accent);
  color: var(--zrsp-surface);
  transform: translateY(-1px);
}
#navbar .buttonheader .btn:active,
.footer .buttonheader .btn:active {
  transform: translateY(1px);
}
.navbar-default {
  min-height: 0;
  background: var(--zrsp-surface);
  border: 0;
  border-top: 1px solid var(--zrsp-border);
}
.navbar-default .navbar-collapse {
  padding: 0;
}
.navbar-default .navbar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  float: none;
  width: 100%;
  margin: 0;
}
.navbar-default .navbar-nav > li {
  float: none;
}
.navbar-default .navbar-nav > li > a {
  padding: 20px 0;
  color: var(--zrsp-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
  transition: color 200ms ease, box-shadow 200ms ease;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li.active > a {
  color: var(--zrsp-accent);
}
.navbar-default .navbar-nav > li.active > a {
  box-shadow: inset 0 -3px 0 var(--zrsp-accent);
}
.footer-wrapper {
  padding: 40px 0 24px;
  background: var(--zrsp-dark);
  color: var(--zrsp-dark-muted);
}
.footer > div:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.footer .col-sm-6,
.footer .col-sm-12,
.footer .col-md-4,
.footer .col-md-5 {
  float: none;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
}
.footer #block-railfast-footer-copyright > div {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer #block-railfast-footer-contacts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}
.footer img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
}
.footer .copy_wrapper {
  flex: 0 0 auto;
  color: var(--zrsp-dark-muted);
}
.footer .copy_wrapper p {
  margin: 6px 0 0;
}
.footer .phone_footersizelarge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--zrsp-surface);
  font-size: 17px;
  font-weight: 600;
}
.footer .footer_email {
  color: var(--zrsp-dark-muted);
}
.footer .buttonheader .btn {
  min-width: 190px;
  background: transparent;
  color: var(--zrsp-surface);
}
.footer .buttonheader .btn:hover {
  background: var(--zrsp-accent);
}
.footer-operator {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--zrsp-dark-border);
  color: var(--zrsp-dark-muted);
  line-height: 1.6;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 0 0;
}
.footer-legal a {
  color: var(--zrsp-dark-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.webform-submission-form {
  box-sizing: border-box;
  margin: 0 auto;
  padding: 32px;
  border-radius: 8px;
  background: var(--zrsp-surface);
  box-shadow: var(--zrsp-shadow);
}
.webform-submission-form .form-item {
  margin-bottom: 24px;
}
.webform-submission-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--zrsp-text);
  font-weight: 600;
}
.webform-submission-form .form-control,
.webform-submission-form input[type="text"],
.webform-submission-form input[type="tel"],
.webform-submission-form input[type="email"],
.webform-submission-form textarea {
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 4px;
}
.webform-submission-form textarea {
  min-height: 150px;
  resize: vertical;
}
.webform-submission-form .js-form-type-checkbox {
  margin: 24px 0;
  padding: 16px;
  border-radius: 4px;
  background: var(--zrsp-subtle);
}
.webform-submission-form .js-form-type-checkbox label {
  margin: 0;
  font-weight: 400;
}
.webform-submission-form .form-submit {
  min-width: 160px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 4px;
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
}
.webform-submission-form .form-submit:hover {
  transform: translateY(-1px);
}
.webform-submission-form .form-submit:active {
  transform: translateY(1px);
}
.webform-submission-form .error {
  border-color: var(--zrsp-accent);
}
.webform-submission-form .form-item--error-message {
  margin-top: 8px;
  color: var(--zrsp-accent);
}
.webform-confirmation {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 8px;
  background: var(--zrsp-surface);
  box-shadow: var(--zrsp-shadow);
}
@media (max-width: 1100px) {
  #navbar .navbar-header {
    gap: 24px;
  }
  #navbar .region-navigation-wrapper #block-railfast-header-contacts > div {
    gap: 20px;
  }
  .navbar-default .navbar-nav > li > a {
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  #navbar .navbar-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 20px 0;
  }
  #navbar .logo-wrapper {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
  #navbar .region-navigation-wrapper #block-railfast-header-contacts > div {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
  }
  #navbar .buttonheader {
    grid-column: 1 / -1;
  }
  #navbar .buttonheader .btn {
    width: 100%;
  }
  .navbar-default .navbar-header {
    display: block;
    padding: 0;
  }
  .navbar-default .navbar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    float: none;
    margin: 12px 0 12px auto;
    padding: 10px 12px;
    border: 1px solid var(--zrsp-border);
    border-radius: 4px;
  }
  .navbar-default .navbar-collapse {
    border: 0;
  }
  .navbar-default .navbar-nav {
    display: block;
    padding-bottom: 12px;
  }
  .navbar-default .navbar-nav > li > a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--zrsp-border);
  }
  .footer-wrapper {
    padding: 32px 0 24px;
  }
  .footer > div:first-child {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .footer #block-railfast-footer-contacts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .footer .buttonheader .btn {
    min-width: 180px;
  }
  .webform-submission-form {
    padding: 24px;
  }
}
@media (max-width: 600px) {
  .footer #block-railfast-footer-copyright > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .footer img {
    max-width: 300px;
  }
  .webform-submission-form {
    padding: 20px;
  }
}
.header-contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
}
.header-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--zrsp-text);
}
.header-email a {
  display: block;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.header-note {
  display: block;
  margin-top: 6px;
  color: var(--zrsp-muted);
  font-size: 13px;
  line-height: 1.4;
}
.header-phone {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}
.header-action,
.footer-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--zrsp-accent);
  border-radius: 4px;
  background: var(--zrsp-surface);
  color: var(--zrsp-accent);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
}
.header-action:hover,
.footer-action:hover {
  background: var(--zrsp-accent);
  color: var(--zrsp-surface);
  transform: translateY(-1px);
}
.header-action:active,
.footer-action:active {
  transform: translateY(1px);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}
.footer-brand img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
}
.footer-copy {
  flex: 0 0 auto;
  color: var(--zrsp-dark-muted);
  line-height: 1.6;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--zrsp-surface);
}
.footer-contact a:last-child {
  color: var(--zrsp-dark-muted);
}
.footer-action {
  min-width: 190px;
  background: transparent;
  color: var(--zrsp-surface);
}
@media (max-width: 768px) {
  .header-contacts {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .header-action {
    grid-column: 1 / -1;
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-action {
    min-width: 180px;
  }
}
@media (max-width: 600px) {
  .header-contacts {
    grid-template-columns: minmax(0, 1fr);
  }
  .header-action {
    grid-column: auto;
  }
  .footer-brand {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}
#navbar > .container > .navbar-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
#navbar .logo-wrapper {
  flex: 0 0 340px;
  text-align: left;
}
#navbar .region-navigation-wrapper {
  flex: 1 1 auto;
  min-width: 0;
}
#navbar .header-contacts {
  display: flex;
  justify-content: flex-end;
}
#navbar .header-email {
  min-width: 180px;
}
#navbar .header-phone,
#navbar .header-action {
  flex: 0 0 auto;
}
@media (max-width: 1100px) {
  #navbar .logo-wrapper {
    flex-basis: 300px;
  }
  #navbar .header-contacts {
    gap: 16px;
  }
  #navbar .header-note {
    display: none;
  }
}
@media (max-width: 768px) {
  #navbar > .container > .navbar-header {
    flex-direction: column;
  }
  #navbar .logo-wrapper {
    flex: 0 1 auto;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
  #navbar .region-navigation-wrapper {
    width: 100%;
  }
  #navbar .header-contacts {
    display: grid;
    justify-content: stretch;
  }
  #navbar .header-note {
    display: block;
  }
}
.footer-grid {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand {
  flex: 1 1 auto;
}
.footer-contact,
.footer-action {
  flex: 0 0 auto;
}
.footer-action {
  min-width: 190px;
  justify-self: end;
}
@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-action {
    min-width: 180px;
  }
}
@media (max-width: 600px) {
  #navbar .header-contact {
    justify-content: flex-start;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }
  #navbar .header-email {
    min-width: 0;
  }
  #navbar .header-email > div {
    flex: 1;
    min-width: 0;
    text-align: left;
  }
  #navbar .header-action {
    width: calc(100% - 32px);
    margin: 0 16px;
  }
}
@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest-cyrillic-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --zrsp-font: 'Onest', Arial, sans-serif;
  --zrsp-hover-shadow: 0 16px 36px #3535351f;
}
body,
input,
button,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--zrsp-font);
}
a,
.btn,
.header-action,
.footer-action,
.catalog-card,
.service-teaser,
.news-card {
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
a {
  text-underline-offset: 3px;
}
.header-contact a:hover,
.footer a:hover {
  color: var(--zrsp-accent);
}
.header-email a {
  white-space: nowrap;
}
.navbar-default .navbar-nav > li > a {
  font-size: 14px;
  text-transform: uppercase;
}
.page-wrapper .main-container {
  width: min(100% - 32px, 1200px);
  max-width: 1200px;
}
.catalog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--zrsp-hover-shadow);
}
.service-teaser:hover {
  box-shadow: var(--zrsp-hover-shadow);
}
.news-card:hover {
  transform: translateY(-2px);
}
.page-wrapper .field--name-body p:has(> img:only-child) {
  display: inline-block;
  width: calc(50% - 20px);
  margin: 10px;
  vertical-align: top;
}
.page-wrapper .field--name-body p:has(> img:only-child) img {
  width: 100%;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  margin: 0;
}
.node-webform {
  max-width: 720px;
  margin: 0 auto;
}
.webform-submission-form .form-required::after {
  content: ' *';
  color: var(--zrsp-accent);
}
.view-taxonomy-term .view-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.service-teaser {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 0;
  border-radius: 8px;
  background: var(--zrsp-surface);
  box-shadow: var(--zrsp-shadow);
  overflow: hidden;
}
.service-teaser-image {
  display: flex;
  align-items: center;
  justify-content: center;
  float: none;
  width: 100%;
  height: 210px;
  margin: 0 0 20px;
}
.service-teaser-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 210px;
  object-fit: contain;
}
.service-teaser h2 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.25;
}
.service-teaser-fields {
  flex: 1;
  min-width: 0;
}
.service-teaser .underlined {
  margin-top: 20px;
  color: var(--zrsp-accent);
  font-weight: 600;
}
.category-term-header {
  margin-bottom: 32px;
  padding: 28px;
  border-radius: 8px;
  background: var(--zrsp-surface);
  box-shadow: var(--zrsp-shadow);
}
.category-term-description {
  max-width: 70ch;
  font-weight: 400;
  line-height: 1.65;
}
.category-term-description p {
  margin: 0 0 16px;
}
.category-term-description p:last-child {
  margin-bottom: 0;
}
.listing-grid.listing-article {
  display: grid;
  max-width: 820px;
  gap: 24px;
}
.news-card {
  display: flex;
  padding: 32px;
  border-radius: 8px;
  background: var(--zrsp-surface);
  box-shadow: var(--zrsp-shadow);
}
.news-card__content {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}
.news-card time {
  color: var(--zrsp-muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.news-card h2 {
  margin: 16px 0;
  font-size: 26px;
  line-height: 1.25;
  text-wrap: balance;
}
.news-card__text {
  flex: 1;
  max-width: 65ch;
  line-height: 1.65;
}
.news-card__link {
  margin-top: 24px;
  color: var(--zrsp-accent);
  font-weight: 600;
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(100% - 32px, 1100px);
  padding: 24px;
  border-radius: 8px;
  background: var(--zrsp-dark);
  color: var(--zrsp-dark-muted);
  box-shadow: var(--zrsp-hover-shadow);
  transform: translateX(-50%);
}
.cookie-banner__text {
  flex: 1;
  min-width: 0;
}
.cookie-banner__text strong {
  color: var(--zrsp-surface);
}
.cookie-banner__text p {
  margin: 6px 0 0;
  line-height: 1.5;
}
.cookie-banner__text a {
  color: var(--zrsp-surface);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}
.cookie-banner__actions button {
  padding: 12px 16px;
  border: 1px solid var(--zrsp-dark-border);
  border-radius: 4px;
  background: transparent;
  color: var(--zrsp-surface);
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.cookie-banner__actions button:hover {
  border-color: var(--zrsp-accent);
  transform: translateY(-1px);
}
.cookie-banner__actions button[data-cookie-choice='all'] {
  border-color: var(--zrsp-accent);
  background: var(--zrsp-accent);
}
@media (max-width: 700px) {
  .view-taxonomy-term .view-content {
    grid-template-columns: minmax(0, 1fr);
  }
  .category-term-header {
    grid-template-columns: minmax(0, 1fr);
  }
  .category-term-image {
    width: auto;
    max-width: 200px;
    height: auto;
    max-height: 200px;
  }
  .page-wrapper .field--name-body p:has(> img:only-child) {
    display: block;
    width: 100%;
    margin: 16px 0;
  }
  .cookie-banner {
    bottom: 12px;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }
  .cookie-banner__actions button {
    flex: 1;
  }
}
.views-element-container:has(.category-term-header) > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.views-element-container:has(.category-term-header) header {
  grid-column: 1 / -1;
}
.views-element-container:has(.category-term-header) .views-row {
  min-width: 0;
}
@media (max-width: 700px) {
  .views-element-container:has(.category-term-header) > div {
    grid-template-columns: minmax(0, 1fr);
  }
}
#navbar .header-email {
  gap: 4px;
}
#navbar .header-email .icon {
  flex: 0 0 20px;
  margin: 0;
}
.page-wrapper,
.home-sections {
  padding-bottom: 48px;
}
.page-wrapper:has(.product-page) {
  background: url('../images/rails_background_v2.png') center top / cover no-repeat;
}
.views-element-container:has(.category-term-header) > div {
  grid-template-columns: minmax(0, 1fr);
}
.views-element-container:has(.category-term-header) .service-teaser {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 20px;
}
.views-element-container:has(.category-term-header) .service-teaser-image {
  grid-column: 1;
  grid-row: 1 / 4;
  height: 140px;
  margin: 0;
}
.views-element-container:has(.category-term-header) .service-teaser h2 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}
.views-element-container:has(.category-term-header) .service-teaser-fields {
  grid-column: 2;
  grid-row: 2;
}
.service-teaser__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.views-element-container:has(.category-term-header) .service-teaser__actions {
  grid-column: 3;
  grid-row: 1 / 3;
  flex-direction: column;
  margin-top: 0;
}
.service-teaser__order {
  padding: 12px 16px;
  border: 1px solid var(--zrsp-accent);
  border-radius: 4px;
  background: var(--zrsp-accent);
  color: var(--zrsp-surface);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
}
.service-teaser__order:hover {
  background: var(--zrsp-surface);
  color: var(--zrsp-accent);
  transform: translateY(-1px);
}
.product-dialog {
  width: min(100% - 32px, 720px);
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--zrsp-surface);
  box-shadow: var(--zrsp-hover-shadow);
  overflow-y: auto;
}
.product-dialog::backdrop {
  background: var(--zrsp-backdrop);
}
.product-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--zrsp-border);
}
.product-dialog__header button {
  padding: 8px 12px;
  border: 1px solid var(--zrsp-border);
  border-radius: 4px;
  background: var(--zrsp-surface);
  color: var(--zrsp-text);
  cursor: pointer;
}
.product-dialog__content {
  padding: 24px;
}
.product-dialog__content .webform-submission-form {
  padding: 0;
  box-shadow: none;
}
@media (max-width: 700px) {
  .views-element-container:has(.category-term-header) .service-teaser {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .views-element-container:has(.category-term-header) .service-teaser-image {
    height: 180px;
    margin-bottom: 20px;
  }
  .service-teaser__actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .service-teaser__order {
    width: 100%;
  }
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: var(--zrsp-muted);
  font-size: 14px;
}
.breadcrumb-list li::after {
  content: '/';
  margin-left: 8px;
}
.breadcrumb-list li:last-child::after {
  content: none;
}
.chelyabinskii-zavod .carousel-caption,
.mainpagebottom > .container,
.home-sections > .container,
.background_lightblue > .main-container {
  width: min(100% - 32px, 1200px);
  max-width: 1200px;
}
#navbar .header-note {
  margin-top: 0;
  line-height: 1.2;
}
#navbar .header-email .icon {
  align-self: center;
  margin-top: 0;
}
.feed-icon {
  display: none !important;
}
@media (min-width: 992px) {
  .chelyabinskii-zavod .carousel-caption {
    display: flex;
    gap: 24px;
    align-items: flex-start;
  }
  .chelyabinskii-zavod .sidebarleftmenu {
    flex: 0 0 320px;
  }
  .chelyabinskii-zavod .slidercaption {
    flex: 1 1 auto;
  }
}
.page-wrapper > .main-container > .row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.page-wrapper aside.col-sm-3 {
  flex: 0 0 320px;
  max-width: 320px;
  padding: 0;
}
.page-wrapper section.col-sm-9 {
  flex: 1;
  min-width: 0;
  padding: 0;
}
.sidebarleftmenu ul.menu.nav,
#block-railfast-services-menu ul.menu.nav {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sidebarleftmenu ul.menu.nav li,
#block-railfast-services-menu ul.menu.nav li {
  margin: 0 0 2px;
  border-radius: 0;
  background: var(--zrsp-surface);
}
.sidebarleftmenu .nav > li > a,
#block-railfast-services-menu .nav > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
#block-railfast-services-menu .menu.nav > li.active > a,
#block-railfast-services-menu .menu.nav > li > a:hover,
#block-railfast-services-menu .menu.nav > li > a:focus,
.page-wrapper .sidebarleftmenu .menu.nav > li.active > a,
.carousel-caption .sidebarleftmenu .menu.nav > li.active > a,
.carousel-caption .sidebarleftmenu .menu.nav > li > a:hover,
.carousel-caption .sidebarleftmenu .menu.nav > li > a:focus {
  color: var(--zrsp-accent) !important;
}
#block-railfast-services-menu .menu.nav > li.active > a::after,
.page-wrapper .sidebarleftmenu .menu.nav > li.active > a::after,
.carousel-caption .sidebarleftmenu .menu.nav > li.active > a::after {
  content: '➜' !important;
  display: block;
  color: var(--zrsp-accent) !important;
  font-weight: 700;
}
.service-table {
  border: 2px solid var(--zrsp-accent);
  background: var(--zrsp-surface);
}
.service-table-head {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto auto;
  gap: 24px;
  padding: 12px 20px;
  border-bottom: 2px solid var(--zrsp-accent);
  font-weight: 600;
}
.views-element-container .service-table .service-teaser {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 20px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.service-table .views-row + .views-row {
  border-top: 1px solid var(--zrsp-border);
}
.views-element-container .service-table .service-teaser-image {
  grid-column: auto;
  grid-row: auto;
  width: 100px;
  height: 100px;
  margin: 0;
}
.views-element-container .service-table .service-teaser h2 {
  grid-column: auto;
  grid-row: auto;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}
.service-table .service-teaser-fields,
.service-table .service-teaser__actions .underlined {
  display: none;
}
.service-table .service-teaser__price {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.views-element-container .service-table .service-teaser__actions {
  grid-column: auto;
  grid-row: auto;
  flex-direction: row;
  margin: 0;
}
.service-table .service-teaser__order {
  background: var(--zrsp-surface);
  color: var(--zrsp-accent);
}
.page-wrapper:has(.product-page),
.page-wrapper:has(.category-term-header) {
  background: linear-gradient(#f3f5f9cc, #f3f5f9cc), url('../images/rails_background_v2.png') center top / cover no-repeat;
}
@media (max-width: 991px) {
  .page-wrapper > .main-container > .row {
    display: block;
  }
  .page-wrapper aside.col-sm-3 {
    max-width: none;
    margin-bottom: 24px;
  }
}
@media (max-width: 700px) {
  .service-table-head {
    display: none;
  }
  .views-element-container .service-table .service-teaser {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  .views-element-container .service-table .service-teaser-image {
    width: 120px;
    height: 120px;
  }
  .service-table .service-teaser__price {
    margin-top: 12px;
  }
  .views-element-container .service-table .service-teaser__actions {
    margin-top: 16px;
  }
}
@media (min-width: 992px) {
  .chelyabinskii-zavod .sidebarleftmenu {
    float: none;
    width: auto;
    margin: 0;
  }
  .chelyabinskii-zavod .slidercaption {
    padding-top: 60px;
    padding-left: 24px;
  }
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
.footer-wrapper {
  margin-top: auto;
}
