/* ==========================================================================
   MOSBEAUTY Group: /resheniya/
   Shared visual theme for the business-solutions hub and detail pages.

   The stylesheet is deliberately scoped to .rsh-page. It does not change the
   global header, breadcrumbs, Bitrix page title, footer, cookie panel or site
   widgets. No additional fonts, images or JavaScript are required.
   ========================================================================== */

.rsh-page {
  --rsh-accent: #a70000;
  --rsh-accent-hover: #900000;
  --rsh-heading: #444444;
  --rsh-text: #212529;
  --rsh-muted: #666666;
  --rsh-surface: #ffffff;
  --rsh-surface-alt: #f2f2f3;
  --rsh-border: #e5e5e5;
  --rsh-border-strong: #cccccc;
  --rsh-counter: #b9b9b9;
  --rsh-font-text: "Open Sans Regular", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --rsh-font-heading: "Roboto Light", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --rsh-font-semibold: "Open Sans SemiBold", "Open Sans Regular", "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding-bottom: 48px;
  font-family: var(--rsh-font-text);
  font-size: 16px;
  line-height: 1.5;
  color: var(--rsh-text);
}

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

.rsh-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0;
}

.rsh-section {
  padding: 48px 0;
}

.rsh-section-alt {
  padding-right: 30px;
  padding-left: 30px;
  background: var(--rsh-surface-alt);
}

.rsh-section h2,
.rsh-cta-block h2 {
  margin: 0 0 28px;
  font-family: var(--rsh-font-heading);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--rsh-heading);
}

/* Hero -------------------------------------------------------------------- */

.rsh-hero {
  padding: 38px 0 40px;
  color: var(--rsh-text);
  background: linear-gradient(90deg, var(--rsh-surface-alt) 0%, var(--rsh-surface) 100%);
  border-top: 1px solid var(--rsh-border);
  border-right: 1px solid var(--rsh-border);
  border-bottom: 1px solid var(--rsh-border);
  border-left: 4px solid var(--rsh-accent);
}

.rsh-hero .rsh-container {
  padding: 0 34px;
}

.rsh-h1 {
  max-width: 920px;
  margin: 0 0 14px;
  font-family: var(--rsh-font-heading);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--rsh-heading);
}

.rsh-lead {
  max-width: 820px;
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--rsh-muted);
}

.rsh-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Buttons ----------------------------------------------------------------- */

.rsh-btn {
  display: inline-flex;
  min-height: 44px;
  padding: 0 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--rsh-font-semibold);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.rsh-btn-primary {
  color: #ffffff;
  background: var(--rsh-accent);
  border-color: var(--rsh-accent);
}

.rsh-btn-primary:hover {
  color: #ffffff;
  background: var(--rsh-accent-hover);
  border-color: var(--rsh-accent-hover);
  text-decoration: none;
}

.rsh-btn-ghost {
  color: var(--rsh-accent);
  background: var(--rsh-surface);
  border-color: var(--rsh-accent);
}

.rsh-btn-ghost:hover {
  color: #ffffff;
  background: var(--rsh-accent);
  border-color: var(--rsh-accent);
  text-decoration: none;
}

.rsh-btn:focus-visible,
.rsh-hub-card:focus-visible,
.rsh-equipment-card:focus-visible,
.rsh-related-card:focus-visible,
.rsh-faq-item summary:focus-visible {
  outline: 2px solid var(--rsh-accent);
  outline-offset: 3px;
}

/* Hub --------------------------------------------------------------------- */

.rsh-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rsh-hub-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.rsh-hub-card {
  display: flex;
  min-width: 0;
  min-height: 188px;
  padding: 22px;
  flex-direction: column;
  color: var(--rsh-text);
  text-decoration: none;
  background: var(--rsh-surface);
  border: 1px solid var(--rsh-border);
  border-bottom: 3px solid var(--rsh-accent);
  border-radius: 0;
  box-shadow: none;
  transition: border-color .2s ease, background-color .2s ease;
}

.rsh-hub-card:hover {
  color: var(--rsh-text);
  text-decoration: none;
  background: #fbfbfb;
  border-color: var(--rsh-accent);
  transform: none;
  box-shadow: none;
}

.rsh-hub-card h3 {
  margin: 0 0 10px;
  font-family: var(--rsh-font-heading);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--rsh-heading);
}

.rsh-hub-card p {
  margin: 0 0 16px;
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.5;
  color: var(--rsh-muted);
}

.rsh-card-link {
  display: inline-block;
  margin-top: auto;
  font-family: var(--rsh-font-semibold);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--rsh-accent);
  text-transform: uppercase;
}

/* Audience and task lists ------------------------------------------------- */

.rsh-audience {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.rsh-audience-card {
  min-width: 0;
  padding: 14px 16px 14px 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--rsh-text);
  background: transparent;
  border: 0;
  border-left: 3px solid var(--rsh-accent);
  border-radius: 0;
}

.rsh-pains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rsh-pains li {
  min-width: 0;
  padding: 15px 12px 15px 34px;
  position: relative;
  font-size: 15px;
  line-height: 1.5;
  color: var(--rsh-text);
  background: transparent;
  border-bottom: 1px solid var(--rsh-border-strong);
  border-radius: 0;
}

.rsh-pains li::before {
  content: "✓";
  position: absolute;
  top: 15px;
  left: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--rsh-accent);
}

/* Equipment cards -------------------------------------------------------- */

.rsh-equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rsh-equipment-card {
  display: flex;
  min-width: 0;
  min-height: 176px;
  padding: 20px;
  flex-direction: column;
  color: var(--rsh-text);
  text-decoration: none;
  background: var(--rsh-surface);
  border: 1px solid var(--rsh-border);
  border-bottom: 3px solid var(--rsh-accent);
  border-radius: 0;
  box-shadow: none;
  transition: border-color .2s ease, background-color .2s ease;
}

.rsh-equipment-card:hover {
  color: var(--rsh-text);
  text-decoration: none;
  background: #fbfbfb;
  border-color: var(--rsh-accent);
  transform: none;
  box-shadow: none;
}

.rsh-equipment-card h3 {
  margin: 0 0 8px;
  font-family: var(--rsh-font-heading);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--rsh-heading);
}

.rsh-equipment-card p {
  margin: 0 0 16px;
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.5;
  color: var(--rsh-muted);
}

.rsh-equipment-card .rsh-card-link {
  margin-top: auto;
}

/* Steps ------------------------------------------------------------------- */

.rsh-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  counter-reset: rsh-step;
  list-style: none;
}

.rsh-steps li {
  min-width: 0;
  padding: 0 16px 0 0;
  position: relative;
  font-size: 15px;
  line-height: 1.5;
  color: var(--rsh-text);
  background: transparent;
  border: 0;
  border-radius: 0;
  counter-increment: rsh-step;
}

.rsh-steps li::before {
  content: counter(rsh-step, decimal-leading-zero);
  display: block;
  width: 66px;
  margin: 0 0 14px;
  padding: 0 0 7px;
  font-family: var(--rsh-font-heading);
  font-size: 46px;
  font-weight: 400;
  line-height: 1;
  color: var(--rsh-counter);
  background: transparent;
  border-bottom: 3px solid var(--rsh-accent);
  border-radius: 0;
}

/* Advantages ------------------------------------------------------------- */

.rsh-advantages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 22px;
}

.rsh-advantage {
  min-width: 0;
  padding: 12px 16px 12px 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--rsh-text);
  background: transparent;
  border: 0;
  border-left: 3px solid var(--rsh-accent);
  border-radius: 0;
}

/* FAQ --------------------------------------------------------------------- */

.rsh-faq {
  width: 100%;
  max-width: none;
}

.rsh-faq-item {
  margin: 0 0 10px;
  padding: 0;
  background: #e9e9e9;
  border: 0;
  border-radius: 2px;
}

.rsh-faq-item[open] {
  background: var(--rsh-surface);
  border-left: 3px solid var(--rsh-accent);
}

.rsh-faq-item summary {
  padding: 14px 18px;
  cursor: pointer;
  font-family: var(--rsh-font-semibold);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--rsh-heading);
}

.rsh-faq-item summary::marker {
  color: var(--rsh-accent);
}

.rsh-faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--rsh-muted);
}

/* Related solutions ------------------------------------------------------ */

.rsh-related-card {
  display: flex;
  min-width: 0;
  min-height: 54px;
  padding: 13px 15px;
  align-items: center;
  font-family: var(--rsh-font-semibold);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--rsh-heading);
  text-decoration: none;
  background: var(--rsh-surface);
  border: 1px solid var(--rsh-border);
  border-left: 3px solid var(--rsh-border-strong);
  border-radius: 0;
  transition: border-color .2s ease, color .2s ease;
}

.rsh-related-card:hover {
  color: var(--rsh-accent);
  text-decoration: none;
  border-color: var(--rsh-accent);
}

/* Final CTA --------------------------------------------------------------- */

.rsh-cta-block {
  padding: 44px 30px;
  color: var(--rsh-text);
  text-align: center;
  background: var(--rsh-surface-alt);
  border-top: 4px solid var(--rsh-accent);
}

.rsh-cta-block h2 {
  margin-bottom: 10px;
  color: var(--rsh-heading);
}

.rsh-cta-block p {
  max-width: 760px;
  margin: 0 auto 24px;
  color: var(--rsh-muted);
}

.rsh-cta-block .rsh-hero-cta {
  justify-content: center;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 991px) {
  .rsh-page {
    padding-bottom: 40px;
  }

  .rsh-section {
    padding: 40px 0;
  }

  .rsh-section-alt {
    padding-right: 24px;
    padding-left: 24px;
  }

  .rsh-hero {
    padding: 34px 0 36px;
  }

  .rsh-hero .rsh-container {
    padding: 0 28px;
  }

  .rsh-hub-grid,
  .rsh-equipment-grid,
  .rsh-audience,
  .rsh-advantages,
  .rsh-pains,
  .rsh-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rsh-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 20px;
  }
}

@media (max-width: 640px) {
  .rsh-page {
    padding-bottom: 32px;
    font-size: 15px;
  }

  .rsh-section {
    padding: 32px 0;
  }

  .rsh-section-alt {
    padding-right: 20px;
    padding-left: 20px;
  }

  .rsh-section h2,
  .rsh-cta-block h2 {
    margin-bottom: 22px;
    font-size: 24px;
    line-height: 1.25;
  }

  .rsh-hero {
    padding: 28px 0 30px;
    border-left-width: 3px;
  }

  .rsh-hero .rsh-container {
    padding: 0 20px;
  }

  .rsh-h1 {
    font-size: 26px;
    line-height: 1.22;
  }

  .rsh-lead {
    margin-bottom: 20px;
    font-size: 15px;
  }

  .rsh-hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .rsh-btn {
    width: 100%;
    min-height: 44px;
    padding: 0 18px;
  }

  .rsh-hub-grid,
  .rsh-equipment-grid,
  .rsh-audience,
  .rsh-advantages,
  .rsh-pains,
  .rsh-related-grid,
  .rsh-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .rsh-hub-grid,
  .rsh-equipment-grid {
    gap: 14px;
  }

  .rsh-hub-card,
  .rsh-equipment-card {
    min-height: 0;
    padding: 18px;
  }

  .rsh-hub-card h3 {
    font-size: 19px;
  }

  .rsh-audience,
  .rsh-advantages {
    gap: 12px;
  }

  .rsh-pains {
    gap: 0;
  }

  .rsh-steps {
    gap: 26px;
  }

  .rsh-steps li {
    padding-right: 0;
  }

  .rsh-faq-item summary,
  .rsh-faq-item p {
    font-size: 14px;
  }

  .rsh-related-card {
    min-height: 50px;
  }

  .rsh-cta-block {
    padding: 32px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rsh-page *,
  .rsh-page *::before,
  .rsh-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
