/* Stage 5 Native Museum & Pilot Enhancements (/css/stage5-museum.css?6)
   100% Reference Parity with https://argument.digital/ & /museum/ & /cases/
   - Exact @font-face names: 'Ubuntu Regular' (400) and 'Ubuntu Bold' (400) — zero Segoe UI fallback, zero faux-bold
   - Unified 1320px (calc(100% - 120rem)) spine across 3840px, 2560px, 1920px, 1440px, 1280px, 768px, and 390px
   - Strict 7-color native argument.digital palette ONLY:
     #ffffff, #000000, #7f7f7f, #578dd8, #2a8edc, #77ce6f, #d4d4d4 */

/* 1. Fix existing /museum/ .bl-3 top blue form 152-FZ contrast & height on 768px tablet */
body .bl-3 .r .pdn-consent,
body .bl-3 .r .pdn-consent span,
body .bl-3 .r .pdn-consent a {
  color: #ffffff !important;
}
body .bl-3 .r {
  height: auto !important;
  padding-bottom: 28px !important;
}

/* Hide legacy incomplete 3-card .bl-15 at bottom since full 6-case museum showcase is featured up top */
body .bl-15 {
  display: none !important;
}

/* Synchronize .arg-tg-strip on /museum/ 1:1 with .bl-18 form (1320px max on widescreen, 60rem margins <=1440px, 20rem mobile)
   and enforce genuine 'Ubuntu Regular' / 'Ubuntu Bold' fonts + #000000 text */
html body .ms5-grant ~ div.arg-tg-strip,
html body .ms5-grant ~ * div.arg-tg-strip {
  width: calc(100% + 30px - 120rem) !important;
  max-width: 1320px !important;
  margin: 24px auto 0 !important;
  padding: 18px 28px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: none !important;
  border-radius: 20px !important;
  box-shadow: 0 0 20px 7px rgba(0, 0, 0, 0.09) !important;
}

html body .arg-tg-strip .arg-tg-strip__label {
  font-family: "Ubuntu Regular", sans-serif !important;
  font-weight: 400 !important;
  font-size: 18px !important;
  line-height: 24px !important;
  color: #000000 !important;
}

html body .arg-tg-strip .arg-tg-pill,
html body .arg-tg-strip .arg-tg-pill span {
  font-family: "Ubuntu Bold", sans-serif !important;
  font-weight: 400 !important;
  font-size: 16px !important;
}

html body .arg-tg-strip .arg-tariffs-link {
  font-family: "Ubuntu Bold", sans-serif !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  color: #2a8edc !important;
}

/* Base isolation for all Stage 5 Museum blocks: genuine 'Ubuntu Regular' webfont */
.ms5-sec {
  scroll-margin-top: 112px !important;
}

.ms5-sec,
.ms5-sec * {
  box-sizing: border-box !important;
  font-family: "Ubuntu Regular", sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
}

/* Reset ONLY unclassed inline spans inside text so classed elements are NEVER overridden */
.ms5-sec span:not([class]) {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  display: inline !important;
}

/* Unified 1320px container flush 1:1 with native .bl-5, .bl-8, .bl-17 & .bl-18 form on EVERY monitor (390px .. 3840px) */
.ms5-sec .ms5-wrap {
  width: calc(100% - 120rem) !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.ms5-sec .ms5-head {
  text-align: center !important;
  max-width: 1120px !important;
  margin: 0 auto 56px !important;
}

/* Native 48px 'Ubuntu Bold' section H2 — 1:1 with "Чем мы можем быть полезны:", "Отзывы", and homepage <h2> */
.ms5-sec .ms5-title {
  font-family: "Ubuntu Bold", sans-serif !important;
  font-weight: 400 !important;
  font-size: 48px !important;
  line-height: 55px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: #000000 !important;
  margin: 0 0 20px 0 !important;
  text-align: center !important;
}

/* Native 20px/28px #000000 'Ubuntu Regular' lead text — 1:1 with /museum/ .p2 & homepage .text-h1 / .vantages__text */
.ms5-sec .ms5-sub {
  font-family: "Ubuntu Regular", sans-serif !important;
  font-weight: 400 !important;
  font-size: 20px !important;
  line-height: 28px !important;
  color: #000000 !important;
  margin: 0 auto !important;
  max-width: 820px !important;
  text-align: center !important;
}

/* ================= SECTION A: 6-CARD MUSEUM CASE SHOWCASE (EXACT 1:1 /cases/ CARDS ON 1320px SPINE) ================= */
.ms5-sec.ms5-cases {
  background: #ffffff !important;
  padding: 96px 0 36px !important;
}

/* 3x400px cards + 2x60px horizontal gaps = exact 1320px outer width! */
.ms5-sec .ms5-cases-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 40px 60px !important;
  width: 100% !important;
}

.ms5-sec .ms5-cases-item {
  background: #ffffff !important;
  box-shadow: 0 0 20px 7px rgba(0, 0, 0, 0.09) !important;
  height: 100% !important;
  border-radius: 18px !important;
  border: none !important;
  overflow: hidden !important;
}

.ms5-sec .ms5-cases-item > a {
  display: block !important;
  height: 100% !important;
  text-decoration: none !important;
  color: #000000 !important;
}

.ms5-sec .ms5-cases-img {
  width: 100% !important;
  height: 355px !important;
  position: relative !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

.ms5-sec .ms5-cases-img::before {
  content: "";
  opacity: 0;
  background-image: url("/cases/img/bl3.png");
  background-size: 100% 100%;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-repeat: no-repeat;
  z-index: 1;
  transition: 0.3s all ease-out;
  pointer-events: none;
}

.ms5-sec .ms5-cases-img:hover::before,
.ms5-sec .ms5-cases-item > a:hover .ms5-cases-img::before {
  opacity: 1;
}

.ms5-sec .ms5-cases-img::after {
  content: "";
  background-image: url("/cases/img/go.png");
  background-repeat: no-repeat;
  background-size: contain;
  width: 48px;
  height: 47px;
  position: absolute;
  z-index: 2;
  bottom: 20px;
  right: 20px;
  pointer-events: none;
}

.ms5-sec .ms5-cases-img img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.ms5-sec .ms5-cases-img--kids img {
  object-position: center 0% !important;
}

.ms5-sec .ms5-cases-img--kurba img {
  object-position: center 14% !important;
}

.ms5-sec .ms5-cases-card-title {
  padding: 40px 40px 0 !important;
  font-family: "Ubuntu Bold", sans-serif !important;
  font-weight: 400 !important;
  font-size: 20px !important;
  line-height: 25px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: #000000 !important;
  margin: 0 !important;
  text-align: left !important;
}

.ms5-sec .ms5-cases-card-text {
  padding: 20px 40px 40px !important;
  font-family: "Ubuntu Regular", sans-serif !important;
  font-weight: 400 !important;
  font-size: 18px !important;
  line-height: 24px !important;
  color: #000000 !important;
  margin: 0 !important;
  text-align: left !important;
}

/* ================= SECTION B: 4-CARD DIFFERENTIATION GRID (2x2 ON 1320px SPINE) ================= */
.ms5-sec.ms5-diff {
  background: #ffffff !important;
  padding: 96px 0 44px !important;
}

.ms5-sec .ms5-diff-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 30px !important;
}

.ms5-sec .ms5-diff-card {
  background: #ffffff !important;
  border: none !important;
  border-radius: 20px !important;
  padding: 38px 40px !important;
  box-shadow: 0 0 20px 7px rgba(0, 0, 0, 0.09) !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 24px !important;
  text-align: left !important;
}

.ms5-sec .ms5-diff-icon {
  width: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: #578dd8 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

.ms5-sec .ms5-diff-icon--green {
  background: #77ce6f !important;
}

.ms5-sec .ms5-diff-icon::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

.ms5-sec .ms5-diff-icon svg {
  width: 26px !important;
  height: 26px !important;
  margin: 0 !important;
  position: static !important;
  display: block !important;
  color: #ffffff !important;
  stroke: #ffffff !important;
  fill: none !important;
}

.ms5-sec .ms5-diff-content {
  flex: 1 !important;
  min-width: 0 !important;
}

.ms5-sec .ms5-diff-title {
  font-family: "Ubuntu Bold", sans-serif !important;
  font-weight: 400 !important;
  font-size: 22px !important;
  line-height: 28px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: #000000 !important;
  margin: 0 0 12px 0 !important;
  text-align: left !important;
}

.ms5-sec .ms5-diff-text {
  font-family: "Ubuntu Regular", sans-serif !important;
  font-weight: 400 !important;
  font-size: 18px !important;
  line-height: 26px !important;
  color: #000000 !important;
  margin: 0 !important;
  text-align: left !important;
}

/* ================= SECTION C: 44-FZ & PFKI GRANT CARD (1:1 WITH .bl-18 SPINE & HOMEPAGE CTAs) ================= */
.ms5-sec.ms5-grant {
  background: #ffffff !important;
  padding: 64px 0 36px !important;
}

.ms5-sec .ms5-grant-box {
  background: #ffffff !important;
  border: none !important;
  border-radius: 20px !important;
  padding: 56px 80px !important;
  box-shadow: 0 0 20px 7px rgba(0, 0, 0, 0.09) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
}

.ms5-sec .ms5-grant-title {
  font-family: "Ubuntu Bold", sans-serif !important;
  font-weight: 400 !important;
  font-size: 36px !important;
  line-height: 44px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: #000000 !important;
  margin: 0 0 18px 0 !important;
  max-width: 980px !important;
  text-align: left !important;
}

.ms5-sec .ms5-grant-desc {
  font-family: "Ubuntu Regular", sans-serif !important;
  font-weight: 400 !important;
  font-size: 20px !important;
  line-height: 28px !important;
  color: #000000 !important;
  margin: 0 0 32px 0 !important;
  max-width: 1020px !important;
  text-align: left !important;
}

.ms5-sec .ms5-grant-btns {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 20px !important;
  margin: 0 !important;
}

/* Exact 1:1 button geometry with .hn-btn-main & .hn-btn-second on https://argument.digital/ */
.ms5-sec .ms5-btn-primary,
.ms5-sec .ms5-btn-secondary {
  height: 60px !important;
  width: auto !important;
  padding: 0 38px !important;
  border-radius: 50px !important;
  font-family: "Ubuntu Bold", sans-serif !important;
  font-weight: 400 !important;
  font-size: 19px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  margin: 0 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.2s ease-in-out;
}

.ms5-sec .ms5-btn-primary {
  background: #77ce6f !important;
  border: 1px solid #77ce6f !important;
  color: #ffffff !important;
}

.ms5-sec .ms5-btn-primary:hover {
  background: #578dd8 !important;
  border-color: #578dd8 !important;
  color: #ffffff !important;
}

.ms5-sec .ms5-btn-secondary {
  background: #ffffff !important;
  border: 1px solid #d4d4d4 !important;
  color: #000000 !important;
}

.ms5-sec .ms5-btn-secondary:hover {
  background: #578dd8 !important;
  border-color: #578dd8 !important;
  color: #ffffff !important;
}

/* ================= COMPACT DESKTOP (<= 1280px) ================= */
@media (max-width: 1280px) {
  .ms5-sec .ms5-cases-grid {
    gap: 32px 32px !important;
  }
  .ms5-sec .ms5-cases-card-title {
    padding: 30px 28px 0 !important;
  }
  .ms5-sec .ms5-cases-card-text {
    padding: 16px 28px 32px !important;
  }
  .ms5-sec .ms5-grant-box {
    padding: 48px 56px !important;
  }
}

/* ================= TABLET (641px .. 991px — e.g. 768x1024 iPad) ================= */
@media (max-width: 991px) {
  .ms5-sec.ms5-cases {
    padding: 64px 0 28px !important;
  }
  .ms5-sec.ms5-diff {
    padding: 64px 0 36px !important;
  }
  .ms5-sec .ms5-head {
    margin-bottom: 36px !important;
  }
  .ms5-sec .ms5-title {
    font-size: 36px !important;
    line-height: 43px !important;
  }
  .ms5-sec .ms5-sub {
    font-size: 18px !important;
    line-height: 25px !important;
  }
  /* 6 cards -> 2x3 symmetric grid on 768px tablet (0 orphan cards!) */
  .ms5-sec .ms5-cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px !important;
  }
  .ms5-sec .ms5-diff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }
  .ms5-sec .ms5-diff-card {
    flex-direction: column !important;
    padding: 28px 26px !important;
    gap: 16px !important;
  }
  .ms5-sec .ms5-diff-icon {
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
  }
  .ms5-sec .ms5-diff-icon svg {
    width: 24px !important;
    height: 24px !important;
  }
  .ms5-sec .ms5-diff-title {
    font-size: 20px !important;
    line-height: 25px !important;
  }
  .ms5-sec .ms5-diff-text {
    font-size: 16.5px !important;
    line-height: 23px !important;
  }
  .ms5-sec .ms5-grant-box {
    padding: 36px 32px !important;
  }
  .ms5-sec .ms5-grant-title {
    font-size: 28px !important;
    line-height: 35px !important;
  }
  .ms5-sec .ms5-grant-desc {
    font-size: 17px !important;
    line-height: 24px !important;
    margin-bottom: 24px !important;
  }
  /* Keep both buttons on a SINGLE horizontal row on 768px tablet */
  .ms5-sec .ms5-grant-btns {
    gap: 12px !important;
  }
  .ms5-sec .ms5-btn-primary,
  .ms5-sec .ms5-btn-secondary {
    height: 48px !important;
    padding: 0 21px !important;
    font-size: 14.5px !important;
  }
}

/* ================= MOBILE (<= 765px / <= 640px — e.g. 390x844 Smartphone) ================= */
@media (max-width: 765px) {
  .ms5-sec .ms5-wrap {
    width: calc(100% - 40rem) !important;
    max-width: none !important;
  }
  html body .ms5-grant ~ div.arg-tg-strip,
  html body .ms5-grant ~ * div.arg-tg-strip {
    width: calc(100% + 30px - 40rem) !important;
    max-width: none !important;
    margin: 20px auto 0 !important;
    padding: 16px 20px !important;
  }
  html body .arg-tg-strip .arg-tg-strip__label {
    font-size: 16px !important;
    line-height: 22px !important;
  }
}

@media (max-width: 640px) {
  .ms5-sec.ms5-cases {
    padding: 48px 0 20px !important;
  }
  .ms5-sec.ms5-diff {
    padding: 48px 0 28px !important;
  }
  .ms5-sec .ms5-head {
    margin-bottom: 28px !important;
  }
  .ms5-sec .ms5-title {
    font-size: 25px !important;
    line-height: 31px !important;
    margin-bottom: 14px !important;
  }
  .ms5-sec .ms5-sub {
    font-size: 16px !important;
    line-height: 22px !important;
  }
  .ms5-sec .ms5-cases-grid,
  .ms5-sec .ms5-diff-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }
  .ms5-sec .ms5-cases-card-title {
    padding: 26px 26px 0 !important;
    font-size: 20px !important;
    line-height: 24px !important;
  }
  .ms5-sec .ms5-cases-card-text {
    padding: 14px 26px 28px !important;
    font-size: 16px !important;
    line-height: 21px !important;
  }
  /* Enforce strict Blue -> Green -> Blue -> Green alternation in 1x4 mobile stack! */
  .ms5-sec .ms5-diff-card:nth-child(4) {
    order: 3 !important;
  }
  .ms5-sec .ms5-diff-card:nth-child(3) {
    order: 4 !important;
  }
  .ms5-sec .ms5-diff-card {
    padding: 24px 22px !important;
  }
  .ms5-sec .ms5-diff-text {
    font-size: 16px !important;
    line-height: 22px !important;
  }
  .ms5-sec.ms5-grant {
    padding: 36px 0 24px !important;
  }
  .ms5-sec .ms5-grant-box {
    padding: 26px 20px !important;
    border-radius: 20px !important;
  }
  .ms5-sec .ms5-grant-title {
    font-size: 24px !important;
    line-height: 30px !important;
    margin-bottom: 14px !important;
  }
  .ms5-sec .ms5-grant-desc {
    font-size: 16px !important;
    line-height: 22px !important;
    margin-bottom: 22px !important;
  }
  .ms5-sec .ms5-grant-btns {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 12px !important;
  }
  .ms5-sec .ms5-btn-primary,
  .ms5-sec .ms5-btn-secondary {
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 14px !important;
    font-size: 13.8px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-align: center !important;
  }
}

/* ================= /free/ 30-DAY CORPORATE PILOT SECONDARY PILL ================= */
.free-pilot-actions {
  margin-top: 22px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
}

/* Secondary white bordered capsule (#ffffff + #d4d4d4) in genuine 'Ubuntu Bold' (400) */
.free-pilot-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 50px !important;
  width: auto !important;
  padding: 0 26px !important;
  border-radius: 50px !important;
  background: #ffffff !important;
  border: 1px solid #d4d4d4 !important;
  color: #000000 !important;
  font-family: "Ubuntu Bold", sans-serif !important;
  font-weight: 400 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  margin: 0 !important;
  white-space: nowrap !important;
  transition: all 0.2s ease-in-out;
}

.free-pilot-btn:hover {
  background: #578dd8 !important;
  border-color: #578dd8 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.free-tg-link {
  display: inline-flex !important;
  align-items: center !important;
  color: #2a8edc !important;
  font-family: "Ubuntu Bold", sans-serif !important;
  font-weight: 400 !important;
  font-size: 14.5px !important;
  line-height: 20px !important;
  text-decoration: underline !important;
  white-space: nowrap !important;
}

.free-tg-link:hover {
  color: #578dd8 !important;
}

@media (max-width: 765px) {
  html body .free-pilot-actions {
    width: 350rem !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  html body .free-pilot-btn {
    width: 350rem !important;
    height: 52px !important;
    font-size: 16px !important;
  }
}
