/* ============ Shop small tweaks (keep) ============ */
@media (min-width: 691px) and (max-width: 1000px){
  .final-sale-home-cta [data-products]{ --shop-columns: repeat(3, minmax(0, 1fr)); }
}
.final-sale-home-cta .product{
  --theme-text-color: rgba(255,255,255,.5);
  --theme-heading-color: #fff;
}
.product > p > .woosc-btn,
.product > p > .woosw-btn{ width: 100%; }
.product > p > .woosc-btn{ margin-bottom: 10px; }


/* ===== Services (page-id-9) FINAL ===== */

/* 语言切换 */
body.page-id-9 .lang-en,
body.page-id-9 .lang-ru{ display:inline; }
body.lang-en.page-id-9 .lang-ru{ display:none !important; }
body.lang-ru.page-id-9 .lang-en{ display:none !important; }

/* 统一模块容器宽度：Services / Steps / Contact 对齐 */
body.page-id-9 .zm-services-grid,
body.page-id-9 .zm-steps,
body.page-id-9 .zm-cta-contacts{
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* 统一模块间距：让 services -> steps -> contact 过渡自然 */
body.page-id-9 .zm-services-section{ margin-bottom: 26px; }
body.page-id-9 .zm-steps-title{ margin: 8px auto 16px; max-width: 1280px; }
body.page-id-9 .zm-steps{ margin-bottom: 18px; }
body.page-id-9 .zm-cta-contacts{ margin-top: 10px; }

/* ===== Services grid：1/2/3/4 列 ===== */
body.page-id-9 .zm-services-grid{
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 0;
  align-items: stretch;
}
@media (min-width: 700px){
  body.page-id-9 .zm-services-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px){
  body.page-id-9 .zm-services-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1440px){
  body.page-id-9 .zm-services-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.page-id-9 .zm-services-grid > .wp-block-column:nth-child(5),
  body.page-id-9 .zm-services-grid > .wp-block-column:nth-child(6){
    grid-column: span 2;
  }
}

/* services 卡片 */
body.page-id-9 .zm-services-grid > .wp-block-column{
  min-width: 0;
  margin: 0 !important;
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 22px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  transition: transform .28s cubic-bezier(.22,.61,.36,1),
              box-shadow .28s cubic-bezier(.22,.61,.36,1);
}
@media (hover:hover) and (pointer:fine){
  body.page-id-9 .zm-services-grid > .wp-block-column:hover{
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0,0,0,.10);
  }
}
body.page-id-9 .zm-services-grid .zm-icon{ margin: 0 0 14px; }
body.page-id-9 .zm-services-grid h3{ margin: 6px 0 12px; line-height: 1.25; }
body.page-id-9 .zm-services-grid p{ margin: 0; }
body.page-id-9 .zm-services-grid h3,
body.page-id-9 .zm-services-grid p{
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: none !important;
}


/* ===== How it works (page-id-9) ===== */
body.page-id-9 .zm-steps{
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 0;
  align-items: stretch;
}
@media (min-width: 700px){
  body.page-id-9 .zm-steps{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px){
  body.page-id-9 .zm-steps{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
body.page-id-9 .zm-steps > .wp-block-column{
  min-width: 0;
  margin: 0 !important;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}
body.page-id-9 .zm-steps p{
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: none !important;
}

/* 让 steps 文案更统一 */
body.page-id-9 .zm-step-head{ margin: 0 0 10px !important; line-height: 1.25; }
body.page-id-9 .zm-step-desc{ margin: 0 !important; opacity: .92; }


/* ===== HERO (page-id-9) ===== */
body.page-id-9 .zm-s1{
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
body.page-id-9 .zm-s1 h1{ margin: 10px 0; }
body.page-id-9 .zm-s1 > p{
  max-width: 820px;
  margin: 0 0 14px;
}

/* bullets：避免 columns 默认布局 */
body.page-id-9 .zm-bullets.wp-block-columns{
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 10px 22px;
  margin: 12px 0 18px !important;
}
@media (min-width: 860px){
  body.page-id-9 .zm-bullets.wp-block-columns{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
body.page-id-9 .zm-bullets p{ margin: 0 !important; }

/* buttons：避免大红块 */
body.page-id-9 .zm-s1 .wp-block-buttons{
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
body.page-id-9 .zm-s1 .wp-block-buttons .wp-block-button{
  margin: 0 !important;
  flex: 0 0 auto;
}
body.page-id-9 .zm-s1 .wp-block-buttons .wp-block-button__link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 180px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
}
@media (max-width: 520px){
  body.page-id-9 .zm-s1 .wp-block-buttons .wp-block-button{ flex: 1 1 100%; }
  body.page-id-9 .zm-s1 .wp-block-buttons .wp-block-button__link{
    width: 100%;
    min-width: 0;
  }
}


/* ===== Contact Us (page-id-9) — FINAL ===== */
body.page-id-9 .zm-cta-contacts{
  position: relative;
  padding: 28px 26px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg,#111 0%,#1e1e1e 100%) !important;
  color: #fff !important;
  box-shadow: 0 18px 60px rgba(0,0,0,.18) !important;
  overflow: hidden;
}

/* 顶部轻过渡（更自然地承接 Steps） */
body.page-id-9 .zm-cta-contacts::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height: 24px;
  background: linear-gradient(to bottom, rgba(255,255,255,.10), rgba(255,255,255,0));
  pointer-events:none;
}
body.page-id-9 .zm-cta-contacts{
  border-top: 1px solid rgba(255,255,255,.10);
}

/* Gutenberg 内层容器不限制宽度 */
body.page-id-9 .zm-cta-contacts > .wp-block-group__inner-container{
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 两栏 */
body.page-id-9 .zm-cta-inner{
  display: grid !important;
  grid-template-columns: 1.35fr 0.9fr !important;
  gap: 34px !important;
  align-items: center !important;
}

/* “消毒”：WP 自动塞的 p/br 不影响布局 */
body.page-id-9 .zm-cta-inner > p{ display: none !important; }
body.page-id-9 .zm-cta-inner br{ display: none !important; }
body.page-id-9 .zm-cta-actions p{ display: contents !important; margin: 0 !important; }

/* 左侧文字强制白色，避免被主题覆盖 */
body.page-id-9 .zm-cta-contacts h2,
body.page-id-9 .zm-cta-contacts .zm-cta-title,
body.page-id-9 .zm-cta-contacts .zm-cta-title span,
body.page-id-9 .zm-cta-contacts .zm-cta-sub,
body.page-id-9 .zm-cta-contacts .zm-cta-sub span,
body.page-id-9 .zm-cta-contacts .zm-cta-points,
body.page-id-9 .zm-cta-contacts .zm-cta-points li{
  color: #fff !important;
}

/* 右侧按钮区 */
body.page-id-9 .zm-cta-actions{
  display: grid !important;
  gap: 14px !important;
  align-content: start !important;
}

body.page-id-9 .zm-contact-btn{
  display: block;
  text-decoration: none !important;
  border-radius: 14px;
  padding: 18px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
body.page-id-9 .zm-contact-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  filter: brightness(1.02);
}
body.page-id-9 .zm-contact-k{
  display: block;
  font-size: 12px;
  opacity: .85;
  letter-spacing: .02em;
}
body.page-id-9 .zm-contact-v{
  display: block;
  font-size: 18px;
  margin-top: 6px;
}
body.page-id-9 .zm-contact-btn.zm-telegram{ background:#2AABEE; color:#fff !important; }
body.page-id-9 .zm-contact-btn.zm-email{ background:#fff; color:#111 !important; }

/* 移动端上下 */
@media (max-width: 900px){
  body.page-id-9 .zm-cta-contacts{ padding: 22px 18px !important; }
  body.page-id-9 .zm-cta-inner{
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}

/* ===== Services page: remove hero image (final) ===== */
body.page-id-9 .zm-hero-image,
body.page-id-9 .zm-s1 figure.wp-block-image{
  display: none !important;
}
/* 收紧 Services 首屏顶部间距 */
body.page-id-9 .zm-s1{
  padding-top: 0 !important;
  margin-top: 0 !important;
}
