/* ==========================================================
   BULLETPROOF LAYOUT & HERO FIX FOR ALL SCREENS
   ========================================================== */

/* 0. Global Typography: Inter (Full Site Font Override) */
*,
*::before,
*::after,
html,
body,
body.wp-theme-astra,
div,
p,
span,
h1,
h2,
h3,
h4,
h5,
h6,
a,
button,
input,
textarea,
select,
label,
.textable,
.font-text,
.font-header,
[class*="font-text"],
[class*="font-header"],
.node,
.widget {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* 1. Reset Astra Container Overrides */
html, body.wp-theme-astra {
  background-color: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

body.wp-theme-astra .ast-container,
body.wp-theme-astra .site-content,
body.wp-theme-astra #content,
body.wp-theme-astra #primary,
body.wp-theme-astra #primary main,
body.wp-theme-astra .entry-content,
body.wp-theme-astra article.page,
body.wp-theme-astra .ast-article-single,
body.wp-theme-astra .ast-separate-container #primary {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* 2. Sections and Base Positioning */
.node.section {
  position: relative !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.node.section > .container {
  width: 1200px !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
  position: relative !important;
  z-index: 5 !important;
  box-sizing: border-box !important;
}

/* 3. Hero Section (.node.css42) Background & Styling */
.node.section-clear.section.css42,
.node.css42 {
  position: relative !important;
  background-color: #111111 !important;
  background-image: url('https://electric-1.ru/wp-content/themes/astra-child-himchistka/assets/images/maxresdefault.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  color: #ffffff !important;
  overflow: hidden !important;
  padding-top: 55px !important;
  padding-bottom: 60px !important;
}

@media (max-width: 768px) {
  .node.section-clear.section.css42,
  .node.css42 {
    padding-top: 35px !important;
    padding-bottom: 40px !important;
  }
}

.node.css42::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.88) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.node.css42 > * {
  position: relative !important;
  z-index: 3 !important;
}

.node.css42 .textable.css46,
.node.css42 .textable.css46 span,
.node.css42 .textable.css46 strong {
  color: #ffffff !important;
  text-align: left !important;
}

.node.css42 .textable.css48,
.node.css42 .textable.css48 span,
.node.css42 .textable.css48 strong {
  text-align: left !important;
}

/* Keep service headings prominent; long locations wrap instead of shrinking. */
.node.css42 h1.textable.css46,
.him-workshop-hero h1,
.him-page-article h1 {
  font-size: clamp(28px, 3vw, 40px) !important;
  line-height: 1.16 !important;
  white-space: normal !important;
  overflow-wrap: break-word;
}
body.home .node.css42 h1.textable.css46 {
  font-size: clamp(30px, 3.4vw, 44px) !important;
}
.node.css42 h1.textable.css46 span,
.node.css42 h1.textable.css46 strong {
  font-size: inherit !important;
  line-height: inherit !important;
  white-space: normal !important;
}

/* 4. Form Card (.node.css58) */
@media (max-width: 767px) {
  .him-feature-strip > .container > .cont > .widget-grid > .grid > .gridwrap {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }
  .him-feature-strip .gridwrap::before,
  .him-feature-strip .gridwrap::after { content: none !important; display: none !important; }
  .him-feature-strip .gridwrap > .col {
    width: auto !important;
    min-width: 0;
    padding: 0 !important;
  }
  .him-feature-strip .grid { margin: 0 !important; }
  .him-feature-strip .widget-imagedtext .tbl,
  .him-feature-strip .widget-imagedtext .td {
    display: block !important;
    width: auto !important;
  }
  .him-feature-strip .widget-imagedtext .td.icon { margin-bottom: 10px; }
  .him-feature-strip .widget-imagedtext .td.icon img { width: 52px; height: 52px; margin: 0 auto; }
  .him-feature-strip .widget-imagedtext .td.text > div { padding-left: 0 !important; }
  .him-feature-strip .textable { font-size: 14px !important; line-height: 1.45 !important; text-align: center !important; overflow-wrap: normal; }
  .him-answers .grid { margin-left: 0 !important; margin-right: 0 !important; }
  .him-answers .gridwrap { display: block !important; }
  .him-answers .gridwrap > .col { display: block !important; width: 100% !important; padding: 0 !important; }
  .him-answers .textable { overflow-wrap: normal; }
  .him-answers h2, .him-answers h3 { line-height: 1.3 !important; }
  .him-answers h3, .him-answers h3 span { font-size: 18px !important; }
  .him-answers p { font-size: 16px !important; line-height: 1.55 !important; }
  .him-answers .widget-gallery, .him-answers .widget-gallery .container { max-width: 100% !important; }
  .him-gal-grid { align-items: stretch !important; }
  .him-gal-media-col, .him-gal-info-col { min-width: 0 !important; width: 100% !important; flex-basis: auto !important; }
  .node.css182 .gridwrap {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }
  .node.css182 .gridwrap::before, .node.css182 .gridwrap::after { content: none !important; display: none !important; }
  .node.css182 .gridwrap > .col { padding: 0 !important; min-width: 0; }
  .node.css182 .widget-grid + .widget-grid { margin-top: 22px; }
  .node.css182 .textable.css186 { font-size: 16px !important; line-height: 1.3 !important; }
  .node.css182 .textable.css187 { font-size: 13px !important; line-height: 1.4 !important; }
}

/* 4. Form Card (.node.css58) */
.node.css58 {
  position: relative !important;
  background-color: rgba(18, 18, 18, 0.94) !important;
  border: 2px dashed #f59e0b !important;
  border-radius: 12px !important;
  padding: 24px 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  box-sizing: border-box !important;
}

.node.css58 .textable.css60 {
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  text-align: center !important;
  margin-bottom: 15px !important;
}

.node.css58 input.form-control {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  color: #1e293b !important;
  font-size: 14px !important;
  width: 100% !important;
  height: 42px !important;
  padding: 8px 12px !important;
  margin-bottom: 10px !important;
  box-sizing: border-box !important;
}

.node.css58 .btn.css65 {
  background: #8fc63d !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  width: 100% !important;
  height: 46px !important;
  border: none !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  box-shadow: 0 4px 14px rgba(143, 198, 61, 0.4) !important;
  transition: all 0.2s ease !important;
}

.node.css58 .btn.css65:hover {
  background: #7cb52d !important;
  transform: translateY(-1px) !important;
}

/* 5. Four Feature Highlights under Hero (.node.css66, .node.css67) */
.node.css66,
.node.css67,
.node.section.css66,
.node.section.css67 {
  background-color: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 16px 0 !important;
}

.node.css66 .textable,
.node.css67 .textable {
  color: #1e293b !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

/* 6. Hero 5 Bullet Items */
.node.css51 {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

.node.css51 .tbl.middle {
  display: table !important;
  width: 100% !important;
}

.node.css51 .td.icon {
  display: table-cell !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  vertical-align: middle !important;
  text-align: center !important;
}

.node.css51 .td.icon svg {
  width: 32px !important;
  height: 32px !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.node.css51 .td.text {
  display: table-cell !important;
  vertical-align: middle !important;
  padding-left: 12px !important;
}

.node.css51 .td.text p,
.node.css51 .td.text span {
  font-size: 15px !important;
  line-height: 1.35 !important;
  color: #ffffff !important;
}

.node.css51 .td.text span[style*="143, 198, 61"],
.node.css51 .td.text span[style*="8fc63d"] {
  color: #8fc63d !important;
  font-weight: 600 !important;
}

/* 7. Navigation & "Наши услуги" Dropdown Menu */
.node.css34,
.node.section.css34,
.node.section-clear.css34 {
  position: relative !important;
  z-index: 9999 !important;
  overflow: visible !important;
}

.node.css34 .container,
.node.css34 .cont,
.node.css34 .widget-menu,
.node.css34 .w-menu-grid,
.node.css34 .w-menu-grid__cell,
.node.css34 .widget-menu-button {
  overflow: visible !important;
}

.him-services-dropdown {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(10px) !important;
  width: 320px !important;
  background: #ffffff !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
  padding: 10px !important;
  box-sizing: border-box !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 999999 !important;
}

.him-services-dropdown::before {
  content: '' !important;
  position: absolute !important;
  top: -14px !important;
  left: 0 !important;
  right: 0 !important;
  height: 16px !important;
  background: transparent !important;
}

.him-services-dropdown.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
  display: block !important;
}

.him-service-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  color: #1f2937 !important;
  text-decoration: none !important;
  transition: background-color 0.15s ease !important;
}

.him-service-item:hover {
  background-color: #f1f5f9 !important;
}

.him-service-icon {
  font-size: 22px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  flex-shrink: 0 !important;
}

.him-service-info {
  display: flex !important;
  flex-direction: column !important;
  text-align: left !important;
}

.him-service-title {
  font-weight: 700 !important;
  font-size: 14px !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
}

.him-service-price {
  font-size: 12px !important;
  color: #64748b !important;
  margin-top: 2px !important;
}

/* 8. FAQ / Spoilers Accordion */
.spoiler2-header {
  cursor: pointer !important;
  user-select: none !important;
  transition: background-color 0.2s ease !important;
}

.spoiler2-header:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.spoiler2-header.is-expanded .spoiler2-toggle svg,
.spoiler2-header.is-expanded .spoiler2-toggle i {
  transform: rotate(180deg) !important;
}

.spoiler2-container {
  transition: all 0.25s ease !important;
}

/* 9. Video Embeds (Replace black box placeholders) */
.widget-video .video-placeholder {
  position: relative !important;
  background: #000000 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
}

.widget-video iframe.video-wrapper {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}

/* 10. Gallery Stepper Items (Perfect circles, fix squashed ovals) */
.him-gallery-stepper .stepper-items button.stepper-item,
button.stepper-item {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;
  aspect-ratio: 1 / 1 !important;
  box-sizing: border-box !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 2px solid #cbd5e1 !important;
  color: #475569 !important;
  font-family: inherit !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  outline: none !important;
  flex-shrink: 0 !important;
}

.him-gallery-stepper .stepper-items button.stepper-item span,
button.stepper-item span {
  display: block !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.him-gallery-stepper .stepper-items button.stepper-item:hover,
button.stepper-item:hover {
  border-color: #2563eb !important;
  color: #2563eb !important;
  background: #eff6ff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}

.him-gallery-stepper .stepper-items button.stepper-item.active,
button.stepper-item.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45) !important;
  transform: scale(1.15) !important;
}

/* 11. Modern Messenger CTA Buttons */
.him-messengers-cta {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  margin-top: 25px !important;
  margin-bottom: 20px !important;
  position: relative !important;
  z-index: 10 !important;
}

.him-btn-messenger {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 28px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  font-family: inherit !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

.him-btn-messenger:hover {
  transform: translateY(-3px) scale(1.02) !important;
}

.him-btn-tg {
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(34, 158, 217, 0.45) !important;
}

.him-btn-tg:hover {
  box-shadow: 0 8px 26px rgba(34, 158, 217, 0.6) !important;
}

.him-btn-wa {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45) !important;
}

.him-btn-wa:hover {
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.6) !important;
}

.him-btn-call {
  background: #1e293b !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

.him-btn-call:hover {
  background: #0f172a !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4) !important;
}

.him-m-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.him-m-text {
  display: flex !important;
  flex-direction: column !important;
  text-align: left !important;
}

.him-m-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #ffffff !important;
}

.him-m-sub {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.85) !important;
  margin-top: 2px !important;
  line-height: 1 !important;
}

/* 12. Tabs Section Contrast Fix ("Что мы используем в работе") */
.him-tabs-nav {
  display: flex !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-bottom: 35px !important;
  flex-wrap: wrap !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.him-tabs-nav button.him-tab-btn,
button.him-tab-btn {
  background: #f1f5f9 !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 50px !important;
  padding: 12px 28px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  cursor: pointer !important;
  position: relative !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  outline: none !important;
}

.him-tabs-nav button.him-tab-btn:hover,
button.him-tab-btn:hover {
  background: #ffffff !important;
  border-color: #2563eb !important;
  color: #2563eb !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
}

.him-tabs-nav button.him-tab-btn.active,
.him-tabs-nav button.him-tab-btn.active:hover,
button.him-tab-btn.active,
button.him-tab-btn.active:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45) !important;
  transform: translateY(-2px) !important;
}

.him-tabs-nav button.him-tab-btn.active::after,
button.him-tab-btn.active::after {
  display: none !important;
}

/* 13. Universal Button Hover Contrast Guarantee */
.him-gallery-stepper .stepper-items button.stepper-item.active,
.him-gallery-stepper .stepper-items button.stepper-item.active:hover,
button.stepper-item.active,
button.stepper-item.active:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
}

.him-gal-arrow:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

.node.widget-button .btn,
button.btn-legacy {
  transition: all 0.2s ease !important;
}

.node.widget-button .btn:hover,
button.btn-legacy:hover {
  color: #ffffff !important;
  filter: brightness(1.1) !important;
}

/* 14. Guarantee Section Dark Overlay & Contrast Fix (#guarantee) */
#guarantee,
.node#guarantee,
.node.section#guarantee,
div[id="guarantee"] {
  position: relative !important;
  background-color: #0b0f19 !important;
  background-image: url('https://electric-1.ru/wp-content/themes/astra-child-himchistka/assets/images/maxresdefault.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  color: #ffffff !important;
  overflow: hidden !important;
  padding-top: 60px !important;
  padding-bottom: 65px !important;
}

#guarantee::before,
.node#guarantee::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(10, 15, 26, 0.88) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

#guarantee > .container,
.node#guarantee > .container,
#guarantee .cont,
.node#guarantee .cont {
  position: relative !important;
  z-index: 3 !important;
}

#guarantee h3,
#guarantee h3 span,
#guarantee h3 strong,
.node#guarantee h3,
.node#guarantee h3 span,
.node#guarantee h3 strong {
  color: #ffffff !important;
  font-size: 34px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  text-align: center !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7) !important;
  line-height: 1.3 !important;
  margin-bottom: 14px !important;
}

#guarantee p,
.node#guarantee p {
  color: #f1f5f9 !important;
  font-size: 19px !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  text-align: center !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7) !important;
}

#guarantee .widget-imagedtext,
.node#guarantee .widget-imagedtext {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

/* Keep each guarantee icon alongside its caption. The imported table used fixed
   layout, which split the icon and text into two equal width cells. */
#guarantee .widget-imagedtext .tbl {
  table-layout: auto !important;
  width: 100% !important;
}
#guarantee .widget-imagedtext .td.icon {
  width: 44px !important;
  min-width: 44px !important;
}
#guarantee .widget-imagedtext .td.text > div {
  padding-left: 12px !important;
}
#guarantee .widget-imagedtext .td.text p {
  text-align: left !important;
  padding-left: 0 !important;
  margin: 0 !important;
}

#guarantee .widget-imagedtext .td.text,
.node#guarantee .widget-imagedtext .td.text,
#guarantee .widget-imagedtext .td.text p,
.node#guarantee .widget-imagedtext .td.text p,
#guarantee .widget-imagedtext .td.text span,
.node#guarantee .widget-imagedtext .td.text span {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7) !important;
  padding-left: 14px !important;
  line-height: 1.35 !important;
}

#guarantee .widget-imagedtext .td.icon svg,
.node#guarantee .widget-imagedtext .td.icon svg {
  filter: drop-shadow(0 2px 8px rgba(143, 198, 61, 0.4)) !important;
}

/* 15. Universal FAQ Spoilers Styling (Applies to all templates & pages) */
.section-elements .widget-spoiler .spoiler2,
.widget-spoiler .spoiler2,
.spoiler2 {
  background-color: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
  color: #1e293b !important;
  padding: 0 24px !important;
  margin-bottom: 12px !important;
  border: 1px solid #e2e8f0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Full-width layout is only for FAQ questions. Other section grids keep their columns. */
.section-elements.css287 .s-elements-grid {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
}

.section-elements.css287 .s-elements-cell {
  width: 100% !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.section-elements.css287 .s-elements-cellwrapper {
  padding: 6px 0 !important;
  width: 100% !important;
}

.spoiler2-header {
  padding: 16px 0 !important;
  padding-right: 30px !important;
  position: relative !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  color: #0f172a !important;
  opacity: 1 !important;
  user-select: none !important;
  letter-spacing: 0.02em !important;
  transition: all 0.2s ease !important;
}

.spoiler2-header:hover {
  background-color: transparent !important;
}

.spoiler2-header p,
.spoiler2-header span,
.spoiler2-header .textable,
.spoiler2-header strong,
.spoiler2-header h3,
.spoiler2-header h4 {
  color: #0f172a !important;
  opacity: 1 !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  filter: none !important;
}

.spoiler2-header:hover p,
.spoiler2-header:hover span,
.spoiler2-header:hover .textable,
.spoiler2-header:hover strong {
  color: #2563eb !important;
}

.spoiler2-toggle {
  position: absolute !important;
  top: 50% !important;
  right: 0px !important;
  transform: translateY(-50%) !important;
  color: #2563eb !important;
  transition: transform 0.25s ease !important;
}

.spoiler2-header.is-expanded .spoiler2-toggle {
  transform: translateY(-50%) rotate(180deg) !important;
}

.spoiler2-container {
  border-top: 1px solid #e2e8f0 !important;
  padding: 16px 0 20px 0 !important;
  color: #334155 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

.spoiler2-container p,
.spoiler2-container span,
.spoiler2-container .textable {
  color: #334155 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin-bottom: 10px !important;
}

/* 16. Fix Giant Overlapping Headings (.css227, 80px font-size collision) */
.textable.css227,
h2.textable.css227,
.node .textable.css227 {
  font-size: 34px !important;
  line-height: 1.35 !important;
  font-family: inherit !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  text-align: center !important;
  margin-bottom: 25px !important;
}

@media (max-width: 768px) {
  .textable.css227,
  h2.textable.css227,
  .node .textable.css227 {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }
}

/* Original artwork and large statistics have their own styles, apart from headings. */
.him-reference-icon {
  display: block;
  max-width: none;
  object-fit: contain;
}
.node.section.css224 .textable.him-company-number {
  font-size: 80px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  margin: 0 0 12px !important;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .node.section.css224 .textable.him-company-number {
    font-size: 60px !important;
  }
}

/* 17. Scroll-to-Top Button Cleanup (Hide duplicate square .goup, style modern round Astra button) */
.goup,
.metahtml .goup,
.btn.css304,
.btn.css303,
[onclick*="scrollToTop"],
.section-metahtml .goup,
.metahtml.css303 .goup {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

#ast-scroll-top {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  background-color: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45) !important;
  transition: all 0.25s ease !important;
  z-index: 99999 !important;
  cursor: pointer !important;
  right: 25px !important;
  bottom: 25px !important;
}

#ast-scroll-top:hover {
  background-color: #1d4ed8 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6) !important;
}

/* Preserve the original icon glyphs while site text uses Inter. */
@font-face {
  font-family: 'Font Awesome 5 Free';
  src: url('../fonts/fa-solid-900.woff2') format('woff2');
  font-style: normal;
  font-weight: 900;
  font-display: block;
}
i.fa, i.fas, .fa::before, .fas::before, .spoiler2-toggle i {
  font-family: 'Font Awesome 5 Free' !important;
  font-weight: 900 !important;
}

#ast-scroll-top .ast-icon svg,
#ast-scroll-top svg {
  width: 18px !important;
  height: 18px !important;
  fill: #ffffff !important;
}






